25class EXPCL_PANDAPHYSX PhysxCapsule {
28 INLINE PhysxCapsule();
29 INLINE PhysxCapsule(
const PhysxSegment &segment,
float radius);
30 INLINE ~PhysxCapsule();
LPoint3f get_p1() const
Returns the end point of the segment.
void set_radius(float value)
Sets the capsule's radius.
float compute_square_length() const
Returns the square distance from the segment's start point to it's end point.
void set_p1(LPoint3f p)
Sets the end point of the segment.
LPoint3f get_p0() const
Returns the start point of the segment.
float get_radius() const
Returns the capsule's radius.
void set_p0(LPoint3f p)
Sets the start point of the segment.
void compute_point(LPoint3f &p, float t) const
Computes a point on the segment.
LPoint3f get_origin() const
Returns the start point of the segment.
float compute_length() const
Returns the distance from the segment's start point to it's end point.
void set_origin_direction(const LPoint3f &origin, const LVector3f &direction)
Setup this capsule from origin (start point) and direction vector.
void compute_direction(LPoint3f &dir) const
Returns the direction vector from the segment's start point to it's end point.
Represents a line segment.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.