Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

3D collision

Status
Not open for further replies.

sbebiwan

Programmer
Sep 5, 2002
1
FR
hello,
I know how to detect a collision in a 3D scene :

member("MyScene").registerForEvent(#collideAny, #putDetails, 0)

on putDetails me, collisionData

put collisionData.modelA
put collisionData.modelB
put collisionData.pointOfContact
put collisionData.collisionNormal

end

this return me the details of the collision, ok.

So I can do something when a collision occurs. But I would want to do something when a collision ends !

for example, set a variable to TRUE while two objects are in collision, and to FALSE when they re no more in contact.

Could someone helps me please? how to start?

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top