About Store Forum Documentation Contact



Post Reply 
Collision Chr with Item
Author Message
Truelegend Offline
Member

Post: #1
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 smile

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
Find all posts by this user Quote this message in a reply
Truelegend Offline
Member

Post: #2
RE: Collision Chr with Item
Anyone can help?
04-23-2011 04:59 PM
Find all posts by this user Quote this message in a reply
Dandruff Offline
Member

Post: #3
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
Find all posts by this user Quote this message in a reply
Post Reply