CollisionSphere

class CollisionSphere

Bases: CollisionSolid

A spherical collision volume or object.

Inheritance diagram

Inheritance diagram of CollisionSphere

explicit CollisionSphere(LPoint3 const &center, PN_stdfloat radius)
explicit CollisionSphere(PN_stdfloat cx, PN_stdfloat cy, PN_stdfloat cz, PN_stdfloat radius)

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

LPoint3 const &get_center(void) const
static TypeHandle get_class_type(void)
PN_stdfloat get_radius(void) const
void set_center(LPoint3 const &center)
void set_center(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z)
void set_radius(PN_stdfloat radius)