How i detect position of collisions with bodies?

ReinaldoEumesmo4002

08-11-2007 07:59:24

I have a project, and i have to detect the exactly position of impact and I dont know what i need to do.
for collisions i used :

NxOgre::GroupCallback::InheritedCallback
NxOgre::CharacterHitReport

But only in NxOgre::CharacterHitReport i can get the collision locate with hit parameter. (This only job for Characters).

What I have to do to detect position with bodies collision

betajaen

08-11-2007 09:05:20

You'd want to use ActorGroups or ShapeGroups

Described in detail and their usage [b]here[/b]

ReinaldoEumesmo4002

08-11-2007 09:39:24

You'd want to use ActorGroups or ShapeGroups

Described in detail and their usage [b]here[/b]


Yep, Im using this. But if my bodies are big, and i have to know where he are colliding
CallBack returns two actors, and I cant use actor->getPosition() for my impact position because this is not a correct position.
What Im looking for is something like RayCastHit, but for body collisions, because i need the collision point and normal.

betajaen

08-11-2007 10:00:21

That'll be in the next version of NxOgre. It a little complicated to implement so it isn't a quick fix.

ReinaldoEumesmo4002

08-11-2007 10:30:23

That'll be in the next version of NxOgre. It a little complicated to implement so it isn't a quick fix.

OK, thanks for your attention..