CollisionBox
-
class CollisionBox
Bases:
CollisionSolid
A cuboid collision volume or object.
Inheritance diagram
-
explicit CollisionBox(LPoint3 const &min, LPoint3 const &max)
Create the Box by giving a Center and distances of each of the sides of box from the Center.
Create the Box by Specifying the Diagonal Points
Creates an invalid Box. Only used when reading from a bam file.
-
static TypeHandle get_class_type(void)
-
int get_num_planes(void) const
Returns 6: the number of faces of a rectangular solid.
-
int get_num_points(void) const
Returns 8: the number of vertices of a rectangular solid.
-
void set_center(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z)
-
explicit CollisionBox(LPoint3 const &min, LPoint3 const &max)