from panda3d.core import CollisionCapsule
class CollisionCapsule

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 getClassType()TypeHandle
property point_aLPoint3

Getter Setter

property point_bLPoint3

Getter Setter

property radiusfloat
setPointA(a: LPoint3)
setPointA(x: float, y: float, z: float)
setPointB(b: LPoint3)
setPointB(x: float, y: float, z: float)
setRadius(radius: float)