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 getClassType() TypeHandle
getPointA() LPoint3
getPointB() LPoint3
getRadius() float
property point_a LPoint3

Getter Setter

property point_b LPoint3

Getter Setter

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