Interface MutableBody

All Superinterfaces:
Body, JoltNative

public sealed interface MutableBody extends Body
MutableBody relies on preview features of the Java platform:
Programs can only use MutableBody when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
  • Method Details

    • at

    • setIsSensor

      void setIsSensor(boolean isSensor)
    • setUseManifoldReduction

      void setUseManifoldReduction(boolean useManifoldReduction)
    • setMotionType

      void setMotionType(MotionType motionType)
    • setCollisionGroup

      void setCollisionGroup(CollisionGroup group)
    • setAllowSleeping

      void setAllowSleeping(boolean allowSleeping)
    • setFriction

      void setFriction(float friction)
    • setRestitution

      void setRestitution(float restitution)
    • setLinearVelocity

      void setLinearVelocity(FVec3 linearVelocity)
    • setLinearVelocityClamped

      void setLinearVelocityClamped(FVec3 linearVelocity)
    • setAngularVelocity

      void setAngularVelocity(FVec3 angularVelocity)
    • setAngularVelocityClamped

      void setAngularVelocityClamped(FVec3 angularVelocity)
    • addForce

      void addForce(FVec3 force)
    • addForce

      void addForce(FVec3 force, FVec3 position)
    • addForce

      void addForce(FVec3 force, DVec3 position)
    • addTorque

      void addTorque(FVec3 torque)
    • addImpulse

      void addImpulse(FVec3 impulse)
    • addImpulse

      void addImpulse(FVec3 impulse, FVec3 position)
    • addImpulse

      void addImpulse(FVec3 impulse, DVec3 position)
    • addAngularImpulse

      void addAngularImpulse(FVec3 angularImpulse)
    • moveKinematic

      void moveKinematic(FVec3 targetPosition, Quat targetRotation, float deltaTime)
    • moveKinematic

      void moveKinematic(DVec3 targetPosition, Quat targetRotation, float deltaTime)
    • applyBuoyancyImpulse

      boolean applyBuoyancyImpulse(FVec3 surfacePosition, FVec3 surfaceNormal, float buoyancy, float linearDrag, float angularDrag, FVec3 fluidVelocity, FVec3 gravity, float deltaTime)
    • applyBuoyancyImpulse

      boolean applyBuoyancyImpulse(DVec3 surfacePosition, FVec3 surfaceNormal, float buoyancy, float linearDrag, float angularDrag, FVec3 fluidVelocity, FVec3 gravity, float deltaTime)
    • getMotionProperties

      MutableMotionProperties getMotionProperties()
      Specified by:
      getMotionProperties in interface Body
    • setUserData

      void setUserData(long userData)