Package jolt.physics.body
Class BodyCreationSettings
java.lang.Object
jolt.BaseJoltNative
jolt.SegmentedJoltNative
jolt.physics.body.BodyCreationSettings
- All Implemented Interfaces:
JoltNative
- Direct Known Subclasses:
BodyCreationSettings.F
public abstract sealed class BodyCreationSettings
extends SegmentedJoltNative
permits BodyCreationSettings.F (not exhaustive)
BodyCreationSettings relies on preview features of the Java platform:
BodyCreationSettingsrefers to one or more preview APIs:MemoryAddress,MemorySegment,MemorySession,SegmentAllocator.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class jolt.SegmentedJoltNative
handle -
Method Summary
Modifier and TypeMethodDescriptionstatic BodyCreationSettingsat(MemorySegmentPREVIEW segment) static BodyCreationSettingsat(MemorySessionPREVIEW alloc, MemoryAddressPREVIEW addr) abstract booleanabstract booleanabstract floatabstract FVec3abstract CollisionGroupabstract floatabstract floatabstract floatabstract booleanabstract floatabstract FVec3voidabstract MassPropertiesabstract floatabstract floatabstract MotionQualityabstract MotionTypeabstract shortabstract OverrideMassPropertiesabstract DVec3abstract FVec3abstract floatabstract QuatgetShape()abstract booleanabstract longbooleanstatic BodyCreationSettingsof(SegmentAllocatorPREVIEW alloc) static BodyCreationSettingsof(SegmentAllocatorPREVIEW alloc, Shape shape, DVec3 position, Quat rotation, MotionType motionType, short layer) static BodyCreationSettingsof(SegmentAllocatorPREVIEW alloc, Shape shape, FVec3 position, Quat rotation, MotionType motionType, short layer) abstract voidsetAllowDynamicOrKinematic(boolean allowDynamicOrKinematic) abstract voidsetAllowSleeping(boolean allowSleeping) abstract voidsetAngularDamping(float angularDamping) abstract voidsetAngularVelocity(FVec3 angularVelocity) abstract voidsetFriction(float friction) abstract voidsetGravityFactor(float gravityFactor) abstract voidsetInertiaMultiplier(float inertiaMultiplier) abstract voidsetIsSensor(boolean isSensor) abstract voidsetLinearDamping(float linearDamping) abstract voidsetLinearVelocity(FVec3 linearVelocity) abstract voidsetMassPropertiesOverride(MassProperties massPropertiesOverride) abstract voidsetMaxAngularVelocity(float maxAngularVelocity) abstract voidsetMaxLinearVelocity(float maxLinearVelocity) abstract voidsetMotionQuality(MotionQuality motionQuality) abstract voidsetMotionType(MotionType motionType) abstract voidsetObjectLayer(short objectLayer) abstract voidsetOverrideMassProperties(OverrideMassProperties overrideMassProperties) abstract voidsetPosition(DVec3 position) abstract voidsetPosition(FVec3 position) abstract voidsetRestitution(float restitution) abstract voidsetRotation(Quat rotation) voidvoidsetShapeSettings(ShapeSettings shape) abstract voidsetUseManifoldReduction(boolean useManifoldReduction) abstract voidsetUserData(long userData) Methods inherited from class jolt.SegmentedJoltNative
addressMethods inherited from class jolt.BaseJoltNative
equals, hashCode
-
Method Details
-
at
-
at
-
of
-
of
public static BodyCreationSettings of(SegmentAllocatorPREVIEW alloc, Shape shape, FVec3 position, Quat rotation, MotionType motionType, short layer) -
of
public static BodyCreationSettings of(SegmentAllocatorPREVIEW alloc, Shape shape, DVec3 position, Quat rotation, MotionType motionType, short layer) -
getShapeSettings
-
setShapeSettings
-
convertShapeSettings
-
getShape
-
setShape
-
hasMassProperties
public boolean hasMassProperties() -
getMassProperties
-
getPositionF
-
setPosition
-
getPositionD
-
setPosition
-
getRotation
-
setRotation
-
getLinearVelocity
-
setLinearVelocity
-
getAngularVelocity
-
setAngularVelocity
-
getUserData
public abstract long getUserData() -
setUserData
public abstract void setUserData(long userData) -
getObjectLayer
public abstract short getObjectLayer() -
setObjectLayer
public abstract void setObjectLayer(short objectLayer) -
getCollisionGroup
-
getMotionType
-
setMotionType
-
getAllowDynamicOrKinematic
public abstract boolean getAllowDynamicOrKinematic() -
setAllowDynamicOrKinematic
public abstract void setAllowDynamicOrKinematic(boolean allowDynamicOrKinematic) -
getIsSensor
public abstract boolean getIsSensor() -
setIsSensor
public abstract void setIsSensor(boolean isSensor) -
getUseManifoldReduction
public abstract boolean getUseManifoldReduction() -
setUseManifoldReduction
public abstract void setUseManifoldReduction(boolean useManifoldReduction) -
getMotionQuality
-
setMotionQuality
-
getAllowSleeping
public abstract boolean getAllowSleeping() -
setAllowSleeping
public abstract void setAllowSleeping(boolean allowSleeping) -
getFriction
public abstract float getFriction() -
setFriction
public abstract void setFriction(float friction) -
getRestitution
public abstract float getRestitution() -
setRestitution
public abstract void setRestitution(float restitution) -
getLinearDamping
public abstract float getLinearDamping() -
setLinearDamping
public abstract void setLinearDamping(float linearDamping) -
getAngularDamping
public abstract float getAngularDamping() -
setAngularDamping
public abstract void setAngularDamping(float angularDamping) -
getMaxLinearVelocity
public abstract float getMaxLinearVelocity() -
setMaxLinearVelocity
public abstract void setMaxLinearVelocity(float maxLinearVelocity) -
getMaxAngularVelocity
public abstract float getMaxAngularVelocity() -
setMaxAngularVelocity
public abstract void setMaxAngularVelocity(float maxAngularVelocity) -
getGravityFactor
public abstract float getGravityFactor() -
setGravityFactor
public abstract void setGravityFactor(float gravityFactor) -
getOverrideMassProperties
-
setOverrideMassProperties
-
getInertiaMultiplier
public abstract float getInertiaMultiplier() -
setInertiaMultiplier
public abstract void setInertiaMultiplier(float inertiaMultiplier) -
getMassPropertiesOverride
-
setMassPropertiesOverride
-
BodyCreationSettingswhen preview features are enabled.