panda3d.core.CollisionSphere

class CollisionSphere

Bases: CollisionSolid

A spherical collision volume or object.

Inheritance diagram

Inheritance diagram of CollisionSphere

__init__(center: LPoint3, radius: float) → None
__init__(cx: float, cy: float, cz: float, radius: float) → None
setCenter(center: LPoint3) → None
setCenter(x: float, y: float, z: float) → None
getCenter() → LPoint3
Return type

LPoint3

setRadius(radius: float) → None
getRadius() → float
static getClassType() → TypeHandle
Return type

TypeHandle

property center

Getter Setter

Return type

LPoint3

property radius

Getter Setter

Return type

float