17 INLINE CollisionCapsule::
18 CollisionCapsule(
const LPoint3 &a,
const LPoint3 &b, PN_stdfloat radius) :
19 _a(a), _b(b), _radius(radius)
22 nassertv(_radius >= 0.0f);
28 INLINE CollisionCapsule::
29 CollisionCapsule(PN_stdfloat ax, PN_stdfloat ay, PN_stdfloat az,
30 PN_stdfloat bx, PN_stdfloat by, PN_stdfloat bz,
32 _a(ax, ay, az), _b(bx, by, bz), _radius(radius)
35 nassertv(_radius >= 0.0f);
41 INLINE CollisionCapsule::
48 INLINE CollisionCapsule::
63 _volume_pcollector.flush_level();
64 _test_pcollector.flush_level();
70 INLINE
void CollisionCapsule::
71 set_point_a(
const LPoint3 &a) {
79 INLINE
void CollisionCapsule::
80 set_point_a(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) {
81 set_point_a(LPoint3(x, y, z));
87 INLINE
const LPoint3 &CollisionCapsule::
95 INLINE
void CollisionCapsule::
96 set_point_b(
const LPoint3 &b) {
104 INLINE
void CollisionCapsule::
105 set_point_b(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) {
106 set_point_b(LPoint3(x, y, z));
112 INLINE
const LPoint3 &CollisionCapsule::
113 get_point_b()
const {
120 INLINE
void CollisionCapsule::
121 set_radius(PN_stdfloat radius) {
122 nassertv(radius >= 0.0f);
127 mark_internal_bounds_stale();
134 INLINE PN_stdfloat CollisionCapsule::
The abstract base class for all things that can collide with other things in the world,...
This implements a solid consisting of a cylinder with hemispherical endcaps, also known as a capsule ...
static void flush_level()
Flushes the PStatCollectors used during traversal.