Pherael
Member
|
Collisions
I have simple class who use below code (class inherits from Game::Kinematics)
Code:
Bool ActiveObject::update(){
Bool collision=Physics.cuts(T.actor.shape(false), AG_PLAYER);
if(collision){...}
}
But collision is always true, no matter where object is.
Somebody know what I do wrong?
(This post was last modified: 11-21-2011 11:42 PM by Pherael.)
|
|
11-21-2011 11:41 PM |
|
Driklyn
Member
|
RE: Collisions
Code:
IndexToFlag(AG_PLAYER)
(This post was last modified: 11-21-2011 11:59 PM by Driklyn.)
|
|
11-21-2011 11:58 PM |
|
Esenthel
Administrator
|
RE: Collisions
try actor.cuts(..)
|
|
11-22-2011 12:06 AM |
|
Pherael
Member
|
RE: Collisions
Oh, Thanks, with "IndexToFlag" everythings work.
(This post was last modified: 11-22-2011 12:09 AM by Pherael.)
|
|
11-22-2011 12:07 AM |
|