How to get object ID by checkForCollisionSpherical?

Started by orkshaman, March 24, 2011, 11:03:18 PM

Previous topic - Next topic

orkshaman

I've got some plane objects - space ships. Check collisions between them works great by checkForCollisionSpherical, but checkForCollisionSpherical translate ships by Zaxis, I only need collision object id. checkForCollision always return -100 (NO_OBJECT), because its plane objects I guess. Sorry for bad english.

EgonOlsen

The check...Collision methods don't translate anything at all!? It's up to you to use the returned SimpleVector for doing a translation or not. To get the object ids (can be more than one) from a speherical collision detection, register a collision listener on the objects.

orkshaman

QuoteThe check...Collision methods don't translate anything at all!? It's up to you to use the returned SimpleVector for doing a translation or not.
Sorry, I mean its return different SimpleVector.
QuoteTo get the object ids (can be more than one) from a speherical collision detection, register a collision listener on the objects.
Thank you.