CollisionCapsule
-
class CollisionCapsule
Bases:
CollisionSolid
This implements a solid consisting of a cylinder with hemispherical endcaps, also known as a capsule or a spherocylinder.
This shape was previously erroneously called
CollisionTube
.Inheritance diagram
-
explicit CollisionCapsule(PN_stdfloat ax, PN_stdfloat ay, PN_stdfloat az, PN_stdfloat bx, PN_stdfloat by, PN_stdfloat bz, PN_stdfloat radius)
Creates an invalid capsule. Only used when reading from a bam file.
-
static TypeHandle get_class_type(void)
-
PN_stdfloat get_radius(void) const
-
void set_point_a(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z)
-
void set_point_b(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z)
-
void set_radius(PN_stdfloat radius)
-
explicit CollisionCapsule(PN_stdfloat ax, PN_stdfloat ay, PN_stdfloat az, PN_stdfloat bx, PN_stdfloat by, PN_stdfloat bz, PN_stdfloat radius)