Package physx.physics

Class PxPhysics

java.lang.Object
physx.NativeObject
physx.physics.PxPhysics

public class PxPhysics extends NativeObject
  • 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

      public static PxPhysics wrapPointer(long address)
    • arrayGet

      public static PxPhysics arrayGet(long baseAddress, int index)
    • destroy

      public void destroy()
    • release

      public void release()
    • getFoundation

      public PxFoundation getFoundation()
      Returns:
      WebIDL type: PxFoundation [Ref]
    • createAggregate

      public PxAggregate createAggregate(int maxActor, int maxShape, boolean enableSelfCollision)
      Parameters:
      maxActor - WebIDL type: unsigned long
      maxShape - WebIDL type: unsigned long
      enableSelfCollision - 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: boolean
      shapeFlags - WebIDL type: PxShapeFlags [Ref]
      Returns:
      WebIDL type: PxShape
    • getNbShapes

      public int getNbShapes()
      Returns:
      WebIDL type: long
    • createArticulationReducedCoordinate

      public PxArticulationReducedCoordinate createArticulationReducedCoordinate()
      Returns:
      WebIDL type: PxArticulationReducedCoordinate
    • createMaterial

      public PxMaterial createMaterial(float staticFriction, float dynamicFriction, float restitution)
      Parameters:
      staticFriction - WebIDL type: float
      dynamicFriction - WebIDL type: float
      restitution - WebIDL type: float
      Returns:
      WebIDL type: PxMaterial
    • getPhysicsInsertionCallback

      public PxInsertionCallback getPhysicsInsertionCallback()
      Returns:
      WebIDL type: PxInsertionCallback [Ref]
    • createPBDParticleSystem

      public PxPBDParticleSystem createPBDParticleSystem(PxCudaContextManager cudaContextManager)
      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 long
      maxVolumes - WebIDL type: unsigned long
      cudaContextManager - 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 long
      maxNumVolumes - WebIDL type: unsigned long
      maxNumCloths - WebIDL type: unsigned long
      maxNumTriangles - WebIDL type: unsigned long
      maxNumSprings - WebIDL type: unsigned long
      cudaContextManager - 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: float
      damping - WebIDL type: float
      adhesion - WebIDL type: float
      viscosity - WebIDL type: float
      vorticityConfinement - WebIDL type: float
      surfaceTension - WebIDL type: float
      cohesion - WebIDL type: float
      lift - WebIDL type: float
      drag - 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: float
      damping - WebIDL type: float
      adhesion - WebIDL type: float
      viscosity - WebIDL type: float
      vorticityConfinement - WebIDL type: float
      surfaceTension - WebIDL type: float
      cohesion - WebIDL type: float
      lift - WebIDL type: float
      drag - WebIDL type: float
      cflCoefficient - 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: float
      damping - WebIDL type: float
      adhesion - WebIDL type: float
      viscosity - WebIDL type: float
      vorticityConfinement - WebIDL type: float
      surfaceTension - WebIDL type: float
      cohesion - WebIDL type: float
      lift - WebIDL type: float
      drag - WebIDL type: float
      cflCoefficient - WebIDL type: float
      gravityScale - WebIDL type: float
      Returns:
      WebIDL type: PxPBDMaterial [Platforms=windows;linux]