CollisionBox
from panda3d.core import CollisionBox
- class CollisionBox
Bases:
CollisionSolid
A cuboid collision volume or object.
Inheritance diagram
- __init__(*args, **kwargs)
- center
- dimensions
- getClassType()
C++ Interface: get_class_type()
- getNumPlanes()
C++ Interface: get_num_planes(CollisionBox self)
- /**
Returns 6: the number of faces of a rectangular solid.
*/
- getNumPoints()
C++ Interface: get_num_points(CollisionBox self)
- /**
Returns 8: the number of vertices of a rectangular solid.
*/
- getPlane()
C++ Interface: get_plane(CollisionBox self, int n)
- /**
Returns the nth face of the rectangular solid.
*/
- getPoint()
C++ Interface: get_point(CollisionBox self, int n)
- /**
Returns the nth vertex of the OBB.
*/
- getPointAabb()
C++ Interface: get_point_aabb(CollisionBox self, int n)
- /**
Returns the nth vertex of the Axis Aligned Bounding Box.
*/
- get_class_type()
C++ Interface: get_class_type()
- get_num_planes()
C++ Interface: get_num_planes(CollisionBox self)
- /**
Returns 6: the number of faces of a rectangular solid.
*/
- get_num_points()
C++ Interface: get_num_points(CollisionBox self)
- /**
Returns 8: the number of vertices of a rectangular solid.
*/
- get_plane()
C++ Interface: get_plane(CollisionBox self, int n)
- /**
Returns the nth face of the rectangular solid.
*/
- get_point()
C++ Interface: get_point(CollisionBox self, int n)
- /**
Returns the nth vertex of the OBB.
*/
- get_point_aabb()
C++ Interface: get_point_aabb(CollisionBox self, int n)
- /**
Returns the nth vertex of the Axis Aligned Bounding Box.
*/
- max
- min
- setCenter()
C++ Interface: set_center(const CollisionBox self, const LPoint3f center) set_center(const CollisionBox self, float x, float y, float z)
- setPlane()
C++ Interface: set_plane(CollisionBox self, int n)
- /**
Creates the nth face of the rectangular solid.
@deprecated Same as get_plane().
*/
- set_center()
C++ Interface: set_center(const CollisionBox self, const LPoint3f center) set_center(const CollisionBox self, float x, float y, float z)