Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Standard Collision with physics objects

Author
Message
Sinistar99_2
13
Years of Service
User Offline
Joined: 5th Dec 2010
Location:
Posted: 23rd Oct 2011 23:24
It seems regular sprite collision doesn't work sometimes with physics objects. Is there a way to turn on physics on a sprite without having it act like a physics object (be physically transparent but still register a physics collision?) or is there a way to get sprite collision to work perfectly on physics enabled sprites?
Almus
12
Years of Service
User Offline
Joined: 27th Aug 2011
Location: Brasil
Posted: 23rd Oct 2011 23:32
use kinematic mode, SetSpritePhysicsOn( iSpriteIndex, 3 ), your sprite dont be affected by other physics objects but others will react to any collision with him.
Sinistar99_2
13
Years of Service
User Offline
Joined: 5th Dec 2010
Location:
Posted: 23rd Oct 2011 23:39
It seems SetSpritePhysicsIsSensor will detect collisions but not affect objects movement.
Sinistar99_2
13
Years of Service
User Offline
Joined: 5th Dec 2010
Location:
Posted: 24th Oct 2011 03:29
...Also it turns out that the sprite collision was working fine too... it was my program logic that was wrong.

Login to post a reply

Server time is: 2024-03-29 05:57:31
Your offset time is: 2024-03-29 05:57:31