Game Development Community

Player::findContact() (collosion) Help

by Shawn McGrath · in Torque Game Engine · 10/25/2004 (3:52 pm) · 0 replies

I have my player oriented (rotated) so that "down" is whatever surface he's standing on, ie. he's perpendicular to the surface he's standing on.

When standing on on an angled surface (ie, normal != (0, 0, 1) ), he appears to hover of it.

I believe this is because Player::findContact is finding a collosion before there should be one, based on a non-rotated box.

I think that wBox needs to be rotated to match the player's rotation.

Is this correct, or should I be looking elsewhere? (I only ask, because I've done the rotation, and it's still not working, but I don't know if I'm doing the rotation wrong or not).

Thanks in advance for any assistance.

Shawn.

About the author

Recent Threads