Interface Body

All Superinterfaces:
JoltNative
All Known Subinterfaces:
MutableBody

public sealed interface Body extends JoltNative permits MutableBody
Body relies on preview features of the Java platform:
Programs can only use Body 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

      static Body at(MemoryAddressPREVIEW addr)
    • fixedToWorld

      static MutableBody fixedToWorld()
    • getId

      int getId()
    • isActive

      boolean isActive()
    • isStatic

      boolean isStatic()
    • isKinematic

      boolean isKinematic()
    • isDynamic

      boolean isDynamic()
    • canBeKinematicOrDynamic

      boolean canBeKinematicOrDynamic()
    • isSensor

      boolean isSensor()
    • getUseManifoldReduction

      boolean getUseManifoldReduction()
    • getUseManifoldReductionWithBody

      boolean getUseManifoldReductionWithBody(Body body)
    • getMotionType

      MotionType getMotionType()
    • getBroadPhaseLayer

      byte getBroadPhaseLayer()
    • getObjectLayer

      short getObjectLayer()
    • getAllowSleeping

      boolean getAllowSleeping()
    • getFriction

      float getFriction()
    • getRestitution

      float getRestitution()
    • getLinearVelocity

      void getLinearVelocity(FVec3 out)
    • getAngularVelocity

      void getAngularVelocity(FVec3 out)
    • getPointVelocityCOM

      void getPointVelocityCOM(FVec3 pointRelativeToCOM, FVec3 out)
    • getPointVelocity

      void getPointVelocity(FVec3 point, FVec3 out)
    • getPointVelocity

      void getPointVelocity(DVec3 point, FVec3 out)
    • getAccumulatedForce

      void getAccumulatedForce(FVec3 out)
    • getAccumulatedTorque

      void getAccumulatedTorque(FVec3 out)
    • getInverseInertia

      void getInverseInertia(FMat44 out)
    • isInBroadPhase

      boolean isInBroadPhase()
    • isCollisionCacheInvalid

      boolean isCollisionCacheInvalid()
    • getShape

      Shape getShape()
    • getPosition

      void getPosition(FVec3 out)
    • getPosition

      void getPosition(DVec3 out)
    • getRotation

      void getRotation(Quat out)
    • getWorldTransform

      void getWorldTransform(FMat44 out)
    • getWorldTransform

      void getWorldTransform(DMat44 out)
    • getCenterOfMassPosition

      void getCenterOfMassPosition(FVec3 out)
    • getCenterOfMassPosition

      void getCenterOfMassPosition(DVec3 out)
    • getCenterOfMassTransform

      void getCenterOfMassTransform(FMat44 out)
    • getCenterOfMassTransform

      void getCenterOfMassTransform(DMat44 out)
    • getInverseCenterOfMassTransform

      void getInverseCenterOfMassTransform(FMat44 out)
    • getInverseCenterOfMassTransform

      void getInverseCenterOfMassTransform(DMat44 out)
    • getMotionProperties

      MotionProperties getMotionProperties()
    • getUserData

      long getUserData()
    • getWorldSpaceSurfaceNormal

      void getWorldSpaceSurfaceNormal(int subShapeId, FVec3 position, FVec3 out)
    • getWorldSpaceSurfaceNormal

      void getWorldSpaceSurfaceNormal(int subShapeId, DVec3 position, FVec3 out)
    • getTransformedShape

      void getTransformedShape(TransformedShape out)
    • getBodyCreationSettings

      void getBodyCreationSettings(BodyCreationSettings out)