Package com.github.stephengold.joltjni
Class AddConvexRadiusSupport
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.AddConvexRadiusSupport
- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
Add convex radius to a support function. (native type:
AddConvexRadius<ConvexShape::Support>
)-
Constructor Summary
ConstructorsConstructorDescriptionAddConvexRadiusSupport
(Support support, float convexRadius) Instantiate for the specified support function and convex radius. -
Method Summary
Modifier and TypeMethodDescriptiongetSupport
(Vec3Arg direction) Evaluate the augmented support function for the specified direction.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Constructor Details
-
AddConvexRadiusSupport
Instantiate for the specified support function and convex radius.- Parameters:
support
- the support function to use (not null)convexRadius
- the desired convex radius
-
-
Method Details
-
getSupport
Evaluate the augmented support function for the specified direction.- Parameters:
direction
- the direction to use (not null, unaffected)- Returns:
- a new offset vector
-