Collision between actors

icaromotta

09-06-2009 21:30:26

Hi,

I wonder if there is any method that returns if an actor is colliding with another actor specific in NxOgre?


Example:
if(collisionActors(actor1, actor2))
{
return true;
}


Thanks

icaromotta

10-06-2009 17:41:44

BetaJaen?

Fred

12-06-2009 01:00:01

Which version of NxOgre do you use?
In Bleeding you can use the ContactCallback-fuctions to ceck, whether there is a collision or not.
But I don't use Bloody Mess so I don't know, if there is a similiar function.

But these functions don't return true or false, but they are called, if there is any collision. But I think you can use this as well

spacegaier

14-06-2009 20:41:28

There is nothing like your proposal in BM. There is only NxOge::Callback. So you could create a volume with a Callback and always align it to your actor, but that would be horribly slow. Best is to go for intersections (like 3D raycasting), but there is nothing in BM so far.

icaromotta

15-06-2009 15:59:49

I Understand.

This is impossible.

Karan

15-06-2009 22:14:30

You can bypass NxOgre and use the PhysX Contact Report mechanism directly. Look into the PhysX documentation under Guide->Collision Detection->Contact Reports.