java.lang.Object
physx.NativeObject
physx.common.PxBase
physx.common.PxRefCounted
physx.physics.PxShape
-
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 PxShapearrayGet(long baseAddress, int index) getActor()floatgetFlags()getMaterialFromInternalFaceIndex(int faceIndex) intgetMaterials(PxMaterialPtr userBuffer, int bufferSize, int startIndex) floatgetName()shortfloatfloatbooleanvoidsetContactOffset(float contactOffset) voidsetFlag(PxShapeFlagEnum flag, boolean value) voidsetFlags(PxShapeFlags inFlags) voidsetGeometry(PxGeometry geometry) voidsetLocalPose(PxTransform pose) voidsetMaterials(PxMaterialPtr materials, short materialCount) voidsetMinTorsionalPatchRadius(float radius) voidvoidvoidsetRestOffset(float restOffset) voidvoidsetTorsionalPatchRadius(float radius) voidsetUserData(NativeObject value) static PxShapewrapPointer(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
-
PxShape
protected PxShape() -
PxShape
protected PxShape(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
getUserData
- Returns:
- WebIDL type: VoidPtr
-
setUserData
- Parameters:
value- WebIDL type: VoidPtr
-
setGeometry
- Parameters:
geometry- WebIDL type:PxGeometry[Const, Ref]
-
getGeometry
- Returns:
- WebIDL type:
PxGeometry[Const, Ref]
-
getActor
- Returns:
- WebIDL type:
PxRigidActor
-
setMaterials
- Parameters:
materials- WebIDL type:PxMaterialPtrmaterialCount- WebIDL type: unsigned short
-
getNbMaterials
public short getNbMaterials()- Returns:
- WebIDL type: unsigned short
-
getMaterials
- Parameters:
userBuffer- WebIDL type:PxMaterialPtrbufferSize- WebIDL type: unsigned longstartIndex- WebIDL type: unsigned long- Returns:
- WebIDL type: unsigned long
-
getMaterialFromInternalFaceIndex
- Parameters:
faceIndex- WebIDL type: unsigned long- Returns:
- WebIDL type:
PxBaseMaterial
-
setContactOffset
public void setContactOffset(float contactOffset) - Parameters:
contactOffset- WebIDL type: float
-
getContactOffset
public float getContactOffset()- Returns:
- WebIDL type: float
-
setRestOffset
public void setRestOffset(float restOffset) - Parameters:
restOffset- WebIDL type: float
-
getRestOffset
public float getRestOffset()- Returns:
- WebIDL type: float
-
setTorsionalPatchRadius
public void setTorsionalPatchRadius(float radius) - Parameters:
radius- WebIDL type: float
-
getTorsionalPatchRadius
public float getTorsionalPatchRadius()- Returns:
- WebIDL type: float
-
setMinTorsionalPatchRadius
public void setMinTorsionalPatchRadius(float radius) - Parameters:
radius- WebIDL type: float
-
getMinTorsionalPatchRadius
public float getMinTorsionalPatchRadius()- Returns:
- WebIDL type: float
-
setFlag
- Parameters:
flag- WebIDL type:PxShapeFlagEnum[enum]value- WebIDL type: boolean
-
setFlags
- Parameters:
inFlags- WebIDL type:PxShapeFlags[Ref]
-
getFlags
- Returns:
- WebIDL type:
PxShapeFlags[Value]
-
isExclusive
public boolean isExclusive()- Returns:
- WebIDL type: boolean
-
setName
- Parameters:
name- WebIDL type: DOMString [Const]
-
getName
- Returns:
- WebIDL type: DOMString [Const]
-
setLocalPose
- Parameters:
pose- WebIDL type:PxTransform[Const, Ref]
-
getLocalPose
- Returns:
- WebIDL type:
PxTransform[Value]
-
setSimulationFilterData
- Parameters:
data- WebIDL type:PxFilterData[Const, Ref]
-
getSimulationFilterData
- Returns:
- WebIDL type:
PxFilterData[Value]
-
setQueryFilterData
- Parameters:
data- WebIDL type:PxFilterData[Const, Ref]
-
getQueryFilterData
- Returns:
- WebIDL type:
PxFilterData[Value]
-