Package jolt.physics.body
Class MassProperties
java.lang.Object
jolt.BaseJoltNative
jolt.SegmentedJoltNative
jolt.physics.body.MassProperties
- All Implemented Interfaces:
JoltNative
MassProperties relies on preview features of the Java platform:
MassPropertiesrefers 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.
-
Field Summary
Fields inherited from class jolt.SegmentedJoltNative
handle -
Method Summary
Modifier and TypeMethodDescriptionstatic MassPropertiesat(MemorySegmentPREVIEW segment) static MassPropertiesat(MemorySessionPREVIEW alloc, MemoryAddressPREVIEW addr) floatgetMass()static MassPropertiesof(SegmentAllocatorPREVIEW alloc) static MassPropertiesof(SegmentAllocatorPREVIEW alloc, float mass, FMat44 inertia) voidread(MemorySegmentPREVIEW segment) voidsetInertia(FMat44 inertia) voidsetMass(float mass) voidwrite(MemorySegmentPREVIEW segment) Methods inherited from class jolt.SegmentedJoltNative
addressMethods inherited from class jolt.BaseJoltNative
equals, hashCode
-
Method Details
-
at
-
at
-
of
-
of
-
getMass
public float getMass() -
setMass
public void setMass(float mass) -
getInertia
-
setInertia
-
read
-
write
-
MassPropertieswhen preview features are enabled.