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

Inheritance diagram of CollisionCapsule

explicit CollisionCapsule(LPoint3 const &a, LPoint3 const &db, 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)

Creates an invalid capsule. Only used when reading from a bam file.

static TypeHandle get_class_type(void)
LPoint3 const &get_point_a(void) const
LPoint3 const &get_point_b(void) const
PN_stdfloat get_radius(void) const
void set_point_a(LPoint3 const &a)
void set_point_a(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z)
void set_point_b(LPoint3 const &b)
void set_point_b(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z)
void set_radius(PN_stdfloat radius)