Package physx.physics
Class PxPhysics
- java.lang.Object
-
- physx.NativeObject
-
- physx.physics.PxPhysics
-
public class PxPhysics extends NativeObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T>
-
-
Field Summary
-
Fields inherited from class physx.NativeObject
address, isExternallyAllocated
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PxAggregatecreateAggregate(int size, boolean enableSelfCollision)PxArticulationcreateArticulation()PxArticulationReducedCoordinatecreateArticulationReducedCoordinate()PxMaterialcreateMaterial(float staticFriction, float dynamicFriction, float restitution)PxRigidDynamiccreateRigidDynamic(PxTransform pose)PxRigidStaticcreateRigidStatic(PxTransform pose)PxScenecreateScene(PxSceneDesc sceneDesc)PxShapecreateShape(PxGeometry geometry, PxMaterial material)PxShapecreateShape(PxGeometry geometry, PxMaterial material, boolean isExclusive)PxShapecreateShape(PxGeometry geometry, PxMaterial material, boolean isExclusive, PxShapeFlags shapeFlags)voiddestroy()PxFoundationgetFoundation()intgetNbShapes()PxPhysicsInsertionCallbackgetPhysicsInsertionCallback()PxTolerancesScalegetTolerancesScale()voidrelease()static PxPhysicswrapPointer(long address)-
Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
-
-
-
Method Detail
-
wrapPointer
public static PxPhysics wrapPointer(long address)
-
destroy
public void destroy()
-
release
public void release()
-
getFoundation
public PxFoundation getFoundation()
- Returns:
- WebIDL type:
PxFoundation[Ref]
-
createAggregate
public PxAggregate createAggregate(int size, boolean enableSelfCollision)
- Parameters:
size- WebIDL type: unsigned longenableSelfCollision- WebIDL type: boolean- Returns:
- WebIDL type:
PxAggregate
-
getTolerancesScale
public PxTolerancesScale getTolerancesScale()
- Returns:
- WebIDL type:
PxTolerancesScale[Const, Ref]
-
createScene
public PxScene createScene(PxSceneDesc sceneDesc)
- Parameters:
sceneDesc- WebIDL type:PxSceneDesc[Const, Ref]- Returns:
- WebIDL type:
PxScene
-
createRigidStatic
public PxRigidStatic createRigidStatic(PxTransform pose)
- Parameters:
pose- WebIDL type:PxTransform[Const, Ref]- Returns:
- WebIDL type:
PxRigidStatic
-
createRigidDynamic
public PxRigidDynamic createRigidDynamic(PxTransform pose)
- Parameters:
pose- WebIDL type:PxTransform[Const, Ref]- Returns:
- WebIDL type:
PxRigidDynamic
-
createShape
public PxShape createShape(PxGeometry geometry, PxMaterial material)
- Parameters:
geometry- WebIDL type:PxGeometry[Const, Ref]material- WebIDL type:PxMaterial[Const, Ref]- Returns:
- WebIDL type:
PxShape
-
createShape
public PxShape createShape(PxGeometry geometry, PxMaterial material, boolean isExclusive)
- Parameters:
geometry- WebIDL type:PxGeometry[Const, Ref]material- WebIDL type:PxMaterial[Const, Ref]isExclusive- WebIDL type: boolean- Returns:
- WebIDL type:
PxShape
-
createShape
public PxShape createShape(PxGeometry geometry, PxMaterial material, boolean isExclusive, PxShapeFlags shapeFlags)
- Parameters:
geometry- WebIDL type:PxGeometry[Const, Ref]material- WebIDL type:PxMaterial[Const, Ref]isExclusive- WebIDL type: booleanshapeFlags- WebIDL type:PxShapeFlags[Ref]- Returns:
- WebIDL type:
PxShape
-
getNbShapes
public int getNbShapes()
- Returns:
- WebIDL type: long
-
createArticulation
public PxArticulation createArticulation()
- Returns:
- WebIDL type:
PxArticulation
-
createArticulationReducedCoordinate
public PxArticulationReducedCoordinate createArticulationReducedCoordinate()
- Returns:
- WebIDL type:
PxArticulationReducedCoordinate
-
createMaterial
public PxMaterial createMaterial(float staticFriction, float dynamicFriction, float restitution)
- Parameters:
staticFriction- WebIDL type: floatdynamicFriction- WebIDL type: floatrestitution- WebIDL type: float- Returns:
- WebIDL type:
PxMaterial
-
getPhysicsInsertionCallback
public PxPhysicsInsertionCallback getPhysicsInsertionCallback()
- Returns:
- WebIDL type:
PxPhysicsInsertionCallback[Ref]
-
-