java.lang.Object
physx.NativeObject
physx.common.PxBase
physx.common.PxRefCounted
physx.geometry.PxHeightField
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxHeightFieldarrayGet(long baseAddress, int index) floatgetFlags()floatgetHeight(float x, float z) intintgetSample(int row, int column) intintshortgetTriangleMaterialIndex(int triangleIndex) getTriangleNormal(int triangleIndex) booleanmodifySamples(int startCol, int startRow, PxHeightFieldDesc subfieldDesc) booleanmodifySamples(int startCol, int startRow, PxHeightFieldDesc subfieldDesc, boolean shrinkBounds) intsaveCells(NativeObject destBuffer, int destBufferSize) static PxHeightFieldwrapPointer(long address) Methods inherited from class physx.common.PxRefCounted
acquireReference, getReferenceCountMethods inherited from class physx.common.PxBase
getBaseFlags, getConcreteType, getConcreteTypeName, isReleasable, release, setBaseFlag, setBaseFlagsMethods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
Field Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
PxHeightField
protected PxHeightField() -
PxHeightField
protected PxHeightField(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
saveCells
- Parameters:
destBuffer- WebIDL type: VoidPtrdestBufferSize- WebIDL type: unsigned long- Returns:
- WebIDL type: unsigned long
-
modifySamples
- Parameters:
startCol- WebIDL type: longstartRow- WebIDL type: longsubfieldDesc- WebIDL type:PxHeightFieldDesc[Const, Ref]- Returns:
- WebIDL type: boolean
-
modifySamples
public boolean modifySamples(int startCol, int startRow, PxHeightFieldDesc subfieldDesc, boolean shrinkBounds) - Parameters:
startCol- WebIDL type: longstartRow- WebIDL type: longsubfieldDesc- WebIDL type:PxHeightFieldDesc[Const, Ref]shrinkBounds- WebIDL type: boolean- Returns:
- WebIDL type: boolean
-
getNbRows
public int getNbRows()- Returns:
- WebIDL type: unsigned long
-
getNbColumns
public int getNbColumns()- Returns:
- WebIDL type: unsigned long
-
getFormat
- Returns:
- WebIDL type:
PxHeightFieldFormatEnum[enum]
-
getSampleStride
public int getSampleStride()- Returns:
- WebIDL type: unsigned long
-
getConvexEdgeThreshold
public float getConvexEdgeThreshold()- Returns:
- WebIDL type: float
-
getFlags
- Returns:
- WebIDL type:
PxHeightFieldFlags[Value]
-
getHeight
public float getHeight(float x, float z) - Parameters:
x- WebIDL type: floatz- WebIDL type: float- Returns:
- WebIDL type: float
-
getTriangleMaterialIndex
public short getTriangleMaterialIndex(int triangleIndex) - Parameters:
triangleIndex- WebIDL type: unsigned long- Returns:
- WebIDL type: unsigned short
-
getTriangleNormal
- Parameters:
triangleIndex- WebIDL type: unsigned long- Returns:
- WebIDL type:
PxVec3[Value]
-
getSample
- Parameters:
row- WebIDL type: unsigned longcolumn- WebIDL type: unsigned long- Returns:
- WebIDL type:
PxHeightFieldSample[Const, Ref]
-
getTimestamp
public int getTimestamp()- Returns:
- WebIDL type: unsigned long
-