Class SphereShape
java.lang.Object
org.episteme.core.mathematics.geometry.collision.SphereShape
- All Implemented Interfaces:
CollisionShape
Sphere collision shape defined by its radius.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SphereShape
public SphereShape(double radius)
-
-
Method Details
-
getRadius
-
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}
-