17 INLINE CollisionSphere::
18 CollisionSphere(
const LPoint3 ¢er, PN_stdfloat radius) :
19 _center(center), _radius(radius)
21 nassertv(_radius >= 0.0f);
27 INLINE CollisionSphere::
28 CollisionSphere(PN_stdfloat cx, PN_stdfloat cy, PN_stdfloat cz, PN_stdfloat radius) :
29 _center(cx, cy, cz), _radius(radius)
31 nassertv(_radius >= 0.0f);
37 INLINE CollisionSphere::
44 INLINE CollisionSphere::
47 _center(copy._center),
57 _volume_pcollector.flush_level();
58 _test_pcollector.flush_level();
64 INLINE
void CollisionSphere::
65 set_center(
const LPoint3 ¢er) {
67 mark_internal_bounds_stale();
74 INLINE
void CollisionSphere::
75 set_center(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) {
76 set_center(LPoint3(x, y, z));
82 INLINE
const LPoint3 &CollisionSphere::
90 INLINE
void CollisionSphere::
91 set_radius(PN_stdfloat radius) {
92 nassertv(radius >= 0.0f);
94 mark_internal_bounds_stale();
101 INLINE PN_stdfloat CollisionSphere::
The abstract base class for all things that can collide with other things in the world,...
A spherical collision volume or object.
static void flush_level()
Flushes the PStatCollectors used during traversal.