Game Development Community

Player collision(bounding) box size?

by Ronald J Nelson · in Torque Game Engine Advanced · 05/19/2008 (12:05 am) · 4 replies

Is there some way to get the dimensions of a player box? Or even better, to get the opposite side from a point on on the box?

Basicallically if you take a point on the front side of the box, I would like to get the point on the back side of the box preferredly in a directional method such as if a projectile had hit the box.

#1
05/21/2008 (11:52 am)
The collision(bounding) box is done via extreme points (minimum and maximum).
You can get their transform in the convex class.
#2
05/24/2008 (7:36 am)
OK there is not some function already that just gives you the size values of the box?
#3
05/24/2008 (9:30 am)
In Player.cpp, you can find getDamageLocation which might be a first step in trying to figure out the location
#4
05/25/2008 (12:30 pm)
The Playerdata interface:
use boundingBox = "xx xx xx";