Class AddConvexRadiusSupport

java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.AddConvexRadiusSupport
All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public class AddConvexRadiusSupport extends JoltPhysicsObject
Add convex radius to a support function. (native type: AddConvexRadius<ConvexShape::Support>)
  • Constructor Details

    • AddConvexRadiusSupport

      public AddConvexRadiusSupport(Support support, float convexRadius)
      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

      public Vec3 getSupport(Vec3Arg direction)
      Evaluate the augmented support function for the specified direction.
      Parameters:
      direction - the direction to use (not null, unaffected)
      Returns:
      a new offset vector