Interface ConstVertex
- All Superinterfaces:
Comparable<JoltPhysicsObject>
,ConstJoltPhysicsObject
- All Known Implementing Classes:
Vertex
Read-only access to a
Vertex
. (native type:
const SoftBodySharedSettings::Vertex
)-
Method Summary
Modifier and TypeMethodDescriptionfloat
Return the inverse mass.Copy the initial location.Copy the initial velocity.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getInvMass
float getInvMass()Return the inverse mass. The vertex is unaffected.- Returns:
- the inverse of the mass (in 1/kilograms)
-
getPosition
Float3 getPosition()Copy the initial location. The vertex is unaffected.- Returns:
- a new location vector
-
getVelocity
Float3 getVelocity()Copy the initial velocity. The vertex is unaffected.- Returns:
- a new velocity vector (in meters per second)
-