Game Development Community

Detecting rotation collision

by Manoel Neto · in Torque Game Engine · 03/11/2005 (4:54 am) · 0 replies

Hi,

The player collision box gets through other objets if I rotate the player in place.

In the game I'm working on you can ride horses. I'm using Robert's horse pack as a start point, and did some changes to it to use non-aligned boxes:

...
   // Create a new convex.
   BoxConvex* cp = new BoxConvex(); //OrthoBoxConvex <- ORIGINAL CODE
   mConvexList->registerObject(cp);
   ...

The collision box rotates properly, but it's possible to get stuck to other objects by rotating in place near to them. The collision box will just get thru, since there's no linear velocity. Does Torque features some way of detecting collision of rotating objects? Or is there a way to use a rigid for collision without turning my horse into a wooden doll?