Package jolt.physics.body
Interface MutableBody
- All Superinterfaces:
Body,JoltNative
MutableBody relies on preview features of the Java platform:
MutableBodyrefers to one or more preview APIs:MemoryAddress.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAngularImpulse(FVec3 angularImpulse) voidvoidvoidvoidaddImpulse(FVec3 impulse) voidaddImpulse(FVec3 impulse, DVec3 position) voidaddImpulse(FVec3 impulse, FVec3 position) voidbooleanapplyBuoyancyImpulse(DVec3 surfacePosition, FVec3 surfaceNormal, float buoyancy, float linearDrag, float angularDrag, FVec3 fluidVelocity, FVec3 gravity, float deltaTime) booleanapplyBuoyancyImpulse(FVec3 surfacePosition, FVec3 surfaceNormal, float buoyancy, float linearDrag, float angularDrag, FVec3 fluidVelocity, FVec3 gravity, float deltaTime) static MutableBodyat(MemoryAddressPREVIEW addr) voidmoveKinematic(DVec3 targetPosition, Quat targetRotation, float deltaTime) voidmoveKinematic(FVec3 targetPosition, Quat targetRotation, float deltaTime) voidsetAllowSleeping(boolean allowSleeping) voidsetAngularVelocity(FVec3 angularVelocity) voidsetAngularVelocityClamped(FVec3 angularVelocity) voidsetCollisionGroup(CollisionGroup group) voidsetFriction(float friction) voidsetIsSensor(boolean isSensor) voidsetLinearVelocity(FVec3 linearVelocity) voidsetLinearVelocityClamped(FVec3 linearVelocity) voidsetMotionType(MotionType motionType) voidsetRestitution(float restitution) voidsetUseManifoldReduction(boolean useManifoldReduction) voidsetUserData(long userData) Methods inherited from interface jolt.physics.body.Body
canBeKinematicOrDynamic, getAccumulatedForce, getAccumulatedTorque, getAllowSleeping, getAngularVelocity, getBodyCreationSettings, getBroadPhaseLayer, getCenterOfMassPosition, getCenterOfMassPosition, getCenterOfMassTransform, getCenterOfMassTransform, getFriction, getId, getInverseCenterOfMassTransform, getInverseCenterOfMassTransform, getInverseInertia, getLinearVelocity, getMotionType, getObjectLayer, getPointVelocity, getPointVelocity, getPointVelocityCOM, getPosition, getPosition, getRestitution, getRotation, getShape, getTransformedShape, getUseManifoldReduction, getUseManifoldReductionWithBody, getUserData, getWorldSpaceSurfaceNormal, getWorldSpaceSurfaceNormal, getWorldTransform, getWorldTransform, isActive, isCollisionCacheInvalid, isDynamic, isInBroadPhase, isKinematic, isSensor, isStaticMethods inherited from interface jolt.JoltNative
address
-
Method Details
-
at
-
setIsSensor
void setIsSensor(boolean isSensor) -
setUseManifoldReduction
void setUseManifoldReduction(boolean useManifoldReduction) -
setMotionType
-
setCollisionGroup
-
setAllowSleeping
void setAllowSleeping(boolean allowSleeping) -
setFriction
void setFriction(float friction) -
setRestitution
void setRestitution(float restitution) -
setLinearVelocity
-
setLinearVelocityClamped
-
setAngularVelocity
-
setAngularVelocityClamped
-
addForce
-
addForce
-
addForce
-
addTorque
-
addImpulse
-
addImpulse
-
addImpulse
-
addAngularImpulse
-
moveKinematic
-
moveKinematic
-
applyBuoyancyImpulse
-
applyBuoyancyImpulse
-
getMotionProperties
MutableMotionProperties getMotionProperties()- Specified by:
getMotionPropertiesin interfaceBody
-
setUserData
void setUserData(long userData)
-
MutableBodywhen preview features are enabled.