java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.Shape
com.github.stephengold.joltjni.PlaneShape
- All Implemented Interfaces:
ConstJoltPhysicsObject
,ConstShape
,RefTarget
,AutoCloseable
,Comparable<JoltPhysicsObject>
A
Shape
to represent a surface defined by a plane.-
Constructor Summary
ConstructorsConstructorDescriptionPlaneShape
(ConstPlane plane) Instantiate the specified shape without creating a settings object.PlaneShape
(ConstPlane plane, ConstPhysicsMaterial material) Instantiate the specified shape without creating a settings object.PlaneShape
(ConstPlane plane, ConstPhysicsMaterial material, float halfExtent) Instantiate the specified shape without creating a settings object. -
Method Summary
Methods inherited from class com.github.stephengold.joltjni.Shape
copyDebugTriangles, countDebugTriangles, draw, drawGetSupportFunction, getCenterOfMass, getInnerRadius, getLeafShape, getLocalBounds, getMassProperties, getMaterial, getRefCount, getRevisionCount, getStats, getSubShapeIdBitsRecursive, getSubType, getType, getWorldSpaceBounds, getWorldSpaceBounds, isValidScale, makeScaleValid, mustBeStatic, saveBinaryState, setEmbedded, sRestoreFromBinaryState, toRef, toRefC
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Constructor Details
-
PlaneShape
Instantiate the specified shape without creating a settings object.- Parameters:
plane
- the plane to use (not null, unaffected)
-
PlaneShape
Instantiate the specified shape without creating a settings object.- Parameters:
plane
- the plane to use (not null, unaffected)material
- the desired surface properties (unaffected) ornull
for default properties (default=null)
-
PlaneShape
Instantiate the specified shape without creating a settings object.- Parameters:
plane
- the plane to use (not null, unaffected)material
- the desired surface properties (unaffected) ornull
for default properties (default=null)halfExtent
- the desired radius of the bounding box (>0, default=1000)
-
-
Method Details
-
getPlane
Copy the shape's surface. The shape is unaffected.- Returns:
- a new object
-