CollisionPolygon
from panda3d.core import CollisionPolygon
- class CollisionPolygon
Bases:
Bases:
CollisionPlane
Inheritance diagram
- property concave bool
Returns true if the
CollisionPolygon
appears to be concave, or false if it is safely convex.
- static getClassType() TypeHandle
- getNumPoints() int
Returns the number of vertices of the
CollisionPolygon
.
- getPoint(n: int) LPoint3
Returns the nth vertex of the
CollisionPolygon
, expressed in 3-D space.
- isConcave() bool
Returns true if the
CollisionPolygon
appears to be concave, or false if it is safely convex.
- isValid() bool
Returns true if the
CollisionPolygon
is valid (that is, it has at least three vertices), or false otherwise.
- property points Sequence[LPoint3]
Returns the nth vertex of the
CollisionPolygon
, expressed in 3-D space.
- property valid bool
Returns true if the
CollisionPolygon
is valid (that is, it has at least three vertices), or false otherwise.