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.
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.