21 INLINE CollisionSphere::
22 CollisionSphere(
const LPoint3 ¢er, PN_stdfloat radius) :
23 _center(center), _radius(radius)
25 nassertv(_radius >= 0.0f);
33 INLINE CollisionSphere::
34 CollisionSphere(PN_stdfloat cx, PN_stdfloat cy, PN_stdfloat cz, PN_stdfloat radius) :
35 _center(cx, cy, cz), _radius(radius)
37 nassertv(_radius >= 0.0f);
46 INLINE CollisionSphere::
55 INLINE CollisionSphere::
58 _center(copy._center),
70 _volume_pcollector.flush_level();
71 _test_pcollector.flush_level();
79 INLINE
void CollisionSphere::
80 set_center(
const LPoint3 ¢er) {
82 mark_internal_bounds_stale();
91 INLINE
void CollisionSphere::
92 set_center(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) {
101 INLINE
const LPoint3 &CollisionSphere::
111 INLINE
void CollisionSphere::
112 set_radius(PN_stdfloat radius) {
113 nassertv(radius >= 0.0f);
115 mark_internal_bounds_stale();
124 INLINE PN_stdfloat CollisionSphere::
The abstract base class for all things that can collide with other things in the world, and all the things they can collide with (except geometry).
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
A spherical collision volume or object.
static void flush_level()
Flushes the PStatCollectors used during traversal.