Hi,
I seem to be having a lot of trouble at the moment enabling and disabling collision detection on complex bodies. I have a display object with 3 complex physics bodies attached to it. Now, at any one time I only want one of them to be active, and what decides if they’re active or not is the direction in which the character is facing. I started off using “isSensor” but this only seemed to affect the whole body itself (unless I was using this wrong). Also, I see this in the docs regarding “isSensor”…
“Consequently, setting isSensor is set for the entire body. One implication is that for complex physics bodies, where some elements are sensors and some are not, using the body.isSensor property will permanently override the individual body element settings.”
Can somebody please give me a few hints as to what I need to do to solve this? I don’t have any problem with collision detection with the complex bodies, just in the API call(s) that need to be made to only keep one complex body active for collision detection at a time.
Any help would be much appreciated.
Kind Regards [import]uid: 125022 topic_id: 34008 reply_id: 334008[/import]