java.lang.Object
physx.NativeObject
physx.physics.PxPhysics
-
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 PxPhysicsarrayGet(long baseAddress, int index) createAggregate(int maxActor, int maxShape, boolean enableSelfCollision) createMaterial(float staticFriction, float dynamicFriction, float restitution) createParticleBuffer(int maxParticles, int maxVolumes, PxCudaContextManager cudaContextManager) createParticleClothBuffer(int maxParticles, int maxNumVolumes, int maxNumCloths, int maxNumTriangles, int maxNumSprings, PxCudaContextManager cudaContextManager) createPBDMaterial(float friction, float damping, float adhesion, float viscosity, float vorticityConfinement, float surfaceTension, float cohesion, float lift, float drag) createPBDMaterial(float friction, float damping, float adhesion, float viscosity, float vorticityConfinement, float surfaceTension, float cohesion, float lift, float drag, float cflCoefficient) createPBDMaterial(float friction, float damping, float adhesion, float viscosity, float vorticityConfinement, float surfaceTension, float cohesion, float lift, float drag, float cflCoefficient, float gravityScale) createPBDParticleSystem(PxCudaContextManager cudaContextManager) createPBDParticleSystem(PxCudaContextManager cudaContextManager, int maxNeighborhood) createRigidStatic(PxTransform pose) createScene(PxSceneDesc sceneDesc) createShape(PxGeometry geometry, PxMaterial material) createShape(PxGeometry geometry, PxMaterial material, boolean isExclusive) createShape(PxGeometry geometry, PxMaterial material, boolean isExclusive, PxShapeFlags shapeFlags) voiddestroy()intvoidrelease()static PxPhysicswrapPointer(long address) Methods 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
-
PxPhysics
protected PxPhysics() -
PxPhysics
protected PxPhysics(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
release
public void release() -
getFoundation
- Returns:
- WebIDL type:
PxFoundation[Ref]
-
createAggregate
- Parameters:
maxActor- WebIDL type: unsigned longmaxShape- WebIDL type: unsigned longenableSelfCollision- WebIDL type: boolean- Returns:
- WebIDL type:
PxAggregate
-
getTolerancesScale
- Returns:
- WebIDL type:
PxTolerancesScale[Const, Ref]
-
createScene
- Parameters:
sceneDesc- WebIDL type:PxSceneDesc[Const, Ref]- Returns:
- WebIDL type:
PxScene
-
createRigidStatic
- Parameters:
pose- WebIDL type:PxTransform[Const, Ref]- Returns:
- WebIDL type:
PxRigidStatic
-
createRigidDynamic
- Parameters:
pose- WebIDL type:PxTransform[Const, Ref]- Returns:
- WebIDL type:
PxRigidDynamic
-
createShape
- Parameters:
geometry- WebIDL type:PxGeometry[Const, Ref]material- WebIDL type:PxMaterial[Const, Ref]- Returns:
- WebIDL type:
PxShape
-
createShape
- 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
-
createArticulationReducedCoordinate
- Returns:
- WebIDL type:
PxArticulationReducedCoordinate
-
createMaterial
- Parameters:
staticFriction- WebIDL type: floatdynamicFriction- WebIDL type: floatrestitution- WebIDL type: float- Returns:
- WebIDL type:
PxMaterial
-
getPhysicsInsertionCallback
- Returns:
- WebIDL type:
PxInsertionCallback[Ref]
-
createPBDParticleSystem
- Parameters:
cudaContextManager- WebIDL type:PxCudaContextManager[Ref]- Returns:
- WebIDL type:
PxPBDParticleSystem[Platforms=windows;linux]
-
createPBDParticleSystem
public PxPBDParticleSystem createPBDParticleSystem(PxCudaContextManager cudaContextManager, int maxNeighborhood) - Parameters:
cudaContextManager- WebIDL type:PxCudaContextManager[Ref]maxNeighborhood- WebIDL type: unsigned long- Returns:
- WebIDL type:
PxPBDParticleSystem[Platforms=windows;linux]
-
createParticleBuffer
public PxParticleBuffer createParticleBuffer(int maxParticles, int maxVolumes, PxCudaContextManager cudaContextManager) - Parameters:
maxParticles- WebIDL type: unsigned longmaxVolumes- WebIDL type: unsigned longcudaContextManager- WebIDL type:PxCudaContextManager- Returns:
- WebIDL type:
PxParticleBuffer[Platforms=windows;linux]
-
createParticleClothBuffer
public PxParticleClothBuffer createParticleClothBuffer(int maxParticles, int maxNumVolumes, int maxNumCloths, int maxNumTriangles, int maxNumSprings, PxCudaContextManager cudaContextManager) - Parameters:
maxParticles- WebIDL type: unsigned longmaxNumVolumes- WebIDL type: unsigned longmaxNumCloths- WebIDL type: unsigned longmaxNumTriangles- WebIDL type: unsigned longmaxNumSprings- WebIDL type: unsigned longcudaContextManager- WebIDL type:PxCudaContextManager- Returns:
- WebIDL type:
PxParticleClothBuffer[Platforms=windows;linux]
-
createPBDMaterial
public PxPBDMaterial createPBDMaterial(float friction, float damping, float adhesion, float viscosity, float vorticityConfinement, float surfaceTension, float cohesion, float lift, float drag) - Parameters:
friction- WebIDL type: floatdamping- WebIDL type: floatadhesion- WebIDL type: floatviscosity- WebIDL type: floatvorticityConfinement- WebIDL type: floatsurfaceTension- WebIDL type: floatcohesion- WebIDL type: floatlift- WebIDL type: floatdrag- WebIDL type: float- Returns:
- WebIDL type:
PxPBDMaterial[Platforms=windows;linux]
-
createPBDMaterial
public PxPBDMaterial createPBDMaterial(float friction, float damping, float adhesion, float viscosity, float vorticityConfinement, float surfaceTension, float cohesion, float lift, float drag, float cflCoefficient) - Parameters:
friction- WebIDL type: floatdamping- WebIDL type: floatadhesion- WebIDL type: floatviscosity- WebIDL type: floatvorticityConfinement- WebIDL type: floatsurfaceTension- WebIDL type: floatcohesion- WebIDL type: floatlift- WebIDL type: floatdrag- WebIDL type: floatcflCoefficient- WebIDL type: float- Returns:
- WebIDL type:
PxPBDMaterial[Platforms=windows;linux]
-
createPBDMaterial
public PxPBDMaterial createPBDMaterial(float friction, float damping, float adhesion, float viscosity, float vorticityConfinement, float surfaceTension, float cohesion, float lift, float drag, float cflCoefficient, float gravityScale) - Parameters:
friction- WebIDL type: floatdamping- WebIDL type: floatadhesion- WebIDL type: floatviscosity- WebIDL type: floatvorticityConfinement- WebIDL type: floatsurfaceTension- WebIDL type: floatcohesion- WebIDL type: floatlift- WebIDL type: floatdrag- WebIDL type: floatcflCoefficient- WebIDL type: floatgravityScale- WebIDL type: float- Returns:
- WebIDL type:
PxPBDMaterial[Platforms=windows;linux]
-