CollisionCapsule

from panda3d.core import CollisionCapsule
class CollisionCapsule

Bases:

Bases: CollisionSolid

This implements a solid consisting of a cylinder with hemispherical endcaps, also known as a capsule or a spherocylinder.

This shape was previously erroneously called CollisionTube.

Inheritance diagram

Inheritance diagram of CollisionCapsule

__init__(a: LPoint3, db: LPoint3, radius: float)
__init__(ax: float, ay: float, az: float, bx: float, by: float, bz: float, radius: float)
static get_class_type() TypeHandle
get_point_a() LPoint3
get_point_b() LPoint3
get_radius() float
property point_a LPoint3

Getter Setter

property point_b LPoint3

Getter Setter

property radius float
set_point_a(a: LPoint3)
set_point_a(x: float, y: float, z: float)
set_point_b(b: LPoint3)
set_point_b(x: float, y: float, z: float)
set_radius(radius: float)