public class PxPhysics extends NativeObject
NativeObject.Allocator<T>address, isExternallyAllocated| Modifier | Constructor and Description |
|---|---|
protected |
PxPhysics() |
protected |
PxPhysics(long address) |
| Modifier and Type | Method and Description |
|---|---|
PxAggregate |
createAggregate(int size,
boolean enableSelfCollision) |
PxArticulation |
createArticulation() |
PxArticulationReducedCoordinate |
createArticulationReducedCoordinate() |
PxMaterial |
createMaterial(float staticFriction,
float dynamicFriction,
float restitution) |
PxRigidDynamic |
createRigidDynamic(PxTransform pose) |
PxRigidStatic |
createRigidStatic(PxTransform pose) |
PxScene |
createScene(PxSceneDesc sceneDesc) |
PxShape |
createShape(PxGeometry geometry,
PxMaterial material) |
PxShape |
createShape(PxGeometry geometry,
PxMaterial material,
boolean isExclusive) |
PxShape |
createShape(PxGeometry geometry,
PxMaterial material,
boolean isExclusive,
PxShapeFlags shapeFlags) |
void |
destroy() |
PxFoundation |
getFoundation() |
int |
getNbShapes() |
PxPhysicsInsertionCallback |
getPhysicsInsertionCallback() |
PxTolerancesScale |
getTolerancesScale() |
void |
release() |
static PxPhysics |
wrapPointer(long address) |
checkNotNull, equals, getAddress, hashCodepublic static PxPhysics wrapPointer(long address)
public void destroy()
public void release()
public PxFoundation getFoundation()
PxFoundation [Ref]public PxAggregate createAggregate(int size, boolean enableSelfCollision)
size - WebIDL type: unsigned longenableSelfCollision - WebIDL type: booleanPxAggregatepublic PxTolerancesScale getTolerancesScale()
PxTolerancesScale [Const, Ref]public PxScene createScene(PxSceneDesc sceneDesc)
sceneDesc - WebIDL type: PxSceneDesc [Const, Ref]PxScenepublic PxRigidStatic createRigidStatic(PxTransform pose)
pose - WebIDL type: PxTransform [Const, Ref]PxRigidStaticpublic PxRigidDynamic createRigidDynamic(PxTransform pose)
pose - WebIDL type: PxTransform [Const, Ref]PxRigidDynamicpublic PxShape createShape(PxGeometry geometry, PxMaterial material)
geometry - WebIDL type: PxGeometry [Const, Ref]material - WebIDL type: PxMaterial [Const, Ref]PxShapepublic PxShape createShape(PxGeometry geometry, PxMaterial material, boolean isExclusive)
geometry - WebIDL type: PxGeometry [Const, Ref]material - WebIDL type: PxMaterial [Const, Ref]isExclusive - WebIDL type: booleanPxShapepublic PxShape createShape(PxGeometry geometry, PxMaterial material, boolean isExclusive, PxShapeFlags shapeFlags)
geometry - WebIDL type: PxGeometry [Const, Ref]material - WebIDL type: PxMaterial [Const, Ref]isExclusive - WebIDL type: booleanshapeFlags - WebIDL type: PxShapeFlags [Ref]PxShapepublic int getNbShapes()
public PxArticulation createArticulation()
PxArticulationpublic PxArticulationReducedCoordinate createArticulationReducedCoordinate()
PxArticulationReducedCoordinatepublic PxMaterial createMaterial(float staticFriction, float dynamicFriction, float restitution)
staticFriction - WebIDL type: floatdynamicFriction - WebIDL type: floatrestitution - WebIDL type: floatPxMaterialpublic PxPhysicsInsertionCallback getPhysicsInsertionCallback()
PxPhysicsInsertionCallback [Ref]