Game Development Community

Collision problems

by Manoel Neto · in Torque Game Engine · 03/21/2005 (7:55 am) · 2 replies

Hi,

I'm having tons of problems while rotating players.

Some of my players got bounding boxes that are bigger in the Y axis. I did a small change to allow the bounding boxes to rotate, but this is causing some problems.

Seems the current convex collision system doesn't give a damn about angular velocity, so when two characters rotate close to each other they'll get stuck sometimes.

The problem is magnified by the fact Torque will make a character stuck if it ends up inside a collision convex somehow, instead of pushing the player away.

I need help in pushing two players apart when their convex boxes overlap. I understand the theory, but Torque's collision code still baffles me.

#1
03/21/2005 (12:29 pm)
Players are not designed to have rotating bounding boxes, unfortunately. Have you tried using the Vehicle class?
#2
03/28/2005 (5:16 am)
Hi,

I'm using Robet's horse class. It's derived from the vehicle class, but uses player movement and collision code.

Since it's a horse, I've been wary of replacing the collision/movement code by the vehicle's one, since, well, a horse doesn't quite slides around and bounce like a car does.

Should I use a rigid instead?