Truelegend
Member
|
Collision Chr with Item
How i can check collision with chr | item?
i was thinking is a actor.cuts but what is mean PhysCutsCallback? can anyone help with this?
It is good?
Code:
if(Chrs[0].ctrl.actor.cuts(OBJ_NODEH))
{
//collison true
}
NODEH is a my health object
It is this code good?
I tried and it is doesnt work :(
Code:
Bool HealthNode::update()
{
T.actor.collision(true);
if(Chrs.elms())
{
if(T.actor.cuts(OBJ_CHR))
{
//Collision
T.disable();//hide the object!
}
}
return super::update();
}
(This post was last modified: 04-23-2011 04:09 PM by Truelegend.)
|
|
04-23-2011 03:45 PM |
|
Truelegend
Member
|
RE: Collision Chr with Item
Anyone can help?
|
|
04-23-2011 04:59 PM |
|
Dandruff
Member
|
RE: Collision Chr with Item
check the tutorials first, see how they do collision detection
Advanced\2 - Animation, Physics, Rendering\Physics
|
|
04-24-2011 02:28 AM |
|