Class BoxShape
java.lang.Object
org.episteme.core.mathematics.geometry.collision.BoxShape
- All Implemented Interfaces:
CollisionShape
Box collision shape defined by its half-extents.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BoxShape
public BoxShape(double x, double y, double z)
-
-
Method Details
-
getHalfExtents
-
getSupportPoint
Description copied from interface:CollisionShapeGets the support point in a given direction (furthest point in that direction). Used for GJK and SAT algorithms.- Specified by:
getSupportPointin interfaceCollisionShape- Parameters:
direction- the direction vector- Returns:
- the support point in local coordinates
-
getAABB
Description copied from interface:CollisionShapecompute AABB (Axis Aligned Bounding Box).- Specified by:
getAABBin interfaceCollisionShape- Returns:
- array of two Vectors {min, max}
-