About Store Forum Documentation Contact



Post Reply 
Collisions
Author Message
Pherael Offline
Member

Post: #1
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
Find all posts by this user Quote this message in a reply
Driklyn Offline
Member

Post: #2
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: Collisions
try actor.cuts(..)
11-22-2011 12:06 AM
Find all posts by this user Quote this message in a reply
Pherael Offline
Member

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