BoundingSphere

from panda3d.core import BoundingSphere
class BoundingSphere

Bases:

Bases: FiniteBoundingVolume

This defines a bounding sphere, consisting of a center and a radius. It is always a sphere, and never an ellipsoid or other quadric.

Inheritance diagram

Inheritance diagram of BoundingSphere

__init__()

Constructs an empty sphere.

__init__(center: LPoint3, radius: float)

Constructs a specific sphere.

property center → LPoint3

Getter Setter

Sets the center point of the sphere.

getCenter() → LPoint3
static getClassType() → TypeHandle
getRadius() → float
operatorNew(size: int)
property radius → float

Getter Setter

Sets the radius of the sphere.

setCenter(center: LPoint3)

Sets the center point of the sphere.

setRadius(radius: float)

Sets the radius of the sphere.