CollisionPolygon

from panda3d.core import CollisionPolygon
class CollisionPolygon

Bases: CollisionPlane

Inheritance diagram

Inheritance diagram of CollisionPolygon

__init__(*args, **kwargs)
concave
getClassType()

C++ Interface: get_class_type()

getNumPoints()

C++ Interface: get_num_points(CollisionPolygon self)

/**
  • Returns the number of vertices of the CollisionPolygon.

*/

getPoint()

C++ Interface: get_point(CollisionPolygon self, int n)

/**
  • Returns the nth vertex of the CollisionPolygon, expressed in 3-D space.

*/

getPoints()
get_class_type()

C++ Interface: get_class_type()

get_num_points()

C++ Interface: get_num_points(CollisionPolygon self)

/**
  • Returns the number of vertices of the CollisionPolygon.

*/

get_point()

C++ Interface: get_point(CollisionPolygon self, int n)

/**
  • Returns the nth vertex of the CollisionPolygon, expressed in 3-D space.

*/

get_points()
isConcave()

C++ Interface: is_concave(CollisionPolygon self)

/**
  • Returns true if the CollisionPolygon appears to be concave, or false if it

  • is safely convex.

*/

isValid()

C++ Interface: is_valid(CollisionPolygon self)

/**
  • Returns true if the CollisionPolygon is valid (that is, it has at least

  • three vertices), or false otherwise.

*/

is_concave()

C++ Interface: is_concave(CollisionPolygon self)

/**
  • Returns true if the CollisionPolygon appears to be concave, or false if it

  • is safely convex.

*/

is_valid()

C++ Interface: is_valid(CollisionPolygon self)

/**
  • Returns true if the CollisionPolygon is valid (that is, it has at least

  • three vertices), or false otherwise.

*/

points
setupPoints()

C++ Interface: setup_points(const CollisionPolygon self, object points)

/**

*/

setup_points()

C++ Interface: setup_points(const CollisionPolygon self, object points)

/**

*/

valid
verifyPoints()

C++ Interface: verify_points(object points) verify_points(const LPoint3f a, const LPoint3f b, const LPoint3f c) verify_points(const LPoint3f a, const LPoint3f b, const LPoint3f c, const LPoint3f d)

/**
  • Verifies that the indicated set of points will define a valid

  • CollisionPolygon: that is, at least three non-collinear points, with no

  • points repeated.

*/

/**
  • Verifies that the indicated set of points will define a valid

  • CollisionPolygon: that is, at least three non-collinear points, with no

  • points repeated.

*/

/**
  • Verifies that the indicated set of points will define a valid

  • CollisionPolygon: that is, at least three non-collinear points, with no

  • points repeated.

  • This does not check that the polygon defined is convex; that check is made

  • later, once we have projected the points to 2-d space where the decision is

  • easier.

*/

verify_points()

C++ Interface: verify_points(object points) verify_points(const LPoint3f a, const LPoint3f b, const LPoint3f c) verify_points(const LPoint3f a, const LPoint3f b, const LPoint3f c, const LPoint3f d)

/**
  • Verifies that the indicated set of points will define a valid

  • CollisionPolygon: that is, at least three non-collinear points, with no

  • points repeated.

*/

/**
  • Verifies that the indicated set of points will define a valid

  • CollisionPolygon: that is, at least three non-collinear points, with no

  • points repeated.

*/

/**
  • Verifies that the indicated set of points will define a valid

  • CollisionPolygon: that is, at least three non-collinear points, with no

  • points repeated.

  • This does not check that the polygon defined is convex; that check is made

  • later, once we have projected the points to 2-d space where the decision is

  • easier.

*/