Package physics.collision.shape
Class ConvexPolygon
java.lang.Object
physics.collision.shape.PrimitiveShape
physics.collision.shape.ConvexPolygon
A basic polygon shape.
It does not ensure the points to be part of the convex hull, so this object may contain points for a concave shape.
If that is the case, this shape won't work correctly for GJKSM collision detection.
- Since:
- 19.06.2021
- Author:
- Juyas
-
Field Summary
Fields inherited from class physics.collision.shape.PrimitiveShape
absoluteCentroid, absolutes, boundingSphere, faces, relativeCentroid, relatives, vertices
-
Constructor Summary
-
Method Summary
Methods inherited from class physics.collision.shape.PrimitiveShape
adjust, boundingSphere, centroid, faces, getAbsolutePoints, init, initSphere, position, rotateShape, setPosition, setPosition, supportPoint, type, vertices
-
Constructor Details
-
ConvexPolygon
public ConvexPolygon(org.joml.Vector2f... relatives)
-