CollisionBox

from panda3d.core import CollisionBox
class CollisionBox

Bases: CollisionSolid

A cuboid collision volume or object.

Inheritance diagram

Inheritance diagram of CollisionBox

__init__(min: LPoint3, max: LPoint3)

Create the Box by Specifying the Diagonal Points

__init__(center: LPoint3, x: float, y: float, z: float)

Create the Box by giving a Center and distances of each of the sides of box from the Center.

property centerLPoint3
property dimensionsLVector3
getCenter()LPoint3
static getClassType()TypeHandle
getDimensions()LVector3
getMax()LPoint3
getMin()LPoint3
getNumPlanes()int

Returns 6: the number of faces of a rectangular solid.

getNumPoints()int

Returns 8: the number of vertices of a rectangular solid.

getPlane(n: int)LPlane

Returns the nth face of the rectangular solid.

getPoint(n: int)LPoint3

Returns the nth vertex of the OBB.

getPointAabb(n: int)LPoint3

Returns the nth vertex of the Axis Aligned Bounding Box.

property maxLPoint3
property minLPoint3
setCenter(center: LPoint3)None
setCenter(x: float, y: float, z: float)None
setPlane(n: int)LPlane

Creates the nth face of the rectangular solid.