Package physx.physics

Class PxScene


public class PxScene extends PxSceneSQSystem
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxScene

      protected PxScene()
    • PxScene

      protected PxScene(long address)
  • Method Details

    • wrapPointer

      public static PxScene wrapPointer(long address)
    • arrayGet

      public static PxScene arrayGet(long baseAddress, int index)
    • getUserData

      public NativeObject getUserData()
      Returns:
      WebIDL type: VoidPtr
    • setUserData

      public void setUserData(NativeObject value)
      Parameters:
      value - WebIDL type: VoidPtr
    • addActor

      public boolean addActor(PxActor actor)
      Parameters:
      actor - WebIDL type: PxActor [Ref]
      Returns:
      WebIDL type: boolean
    • addActor

      public boolean addActor(PxActor actor, PxBVH bvh)
      Parameters:
      actor - WebIDL type: PxActor [Ref]
      bvh - WebIDL type: PxBVH [Const]
      Returns:
      WebIDL type: boolean
    • removeActor

      public void removeActor(PxActor actor)
      Parameters:
      actor - WebIDL type: PxActor [Ref]
    • removeActor

      public void removeActor(PxActor actor, boolean wakeOnLostTouch)
      Parameters:
      actor - WebIDL type: PxActor [Ref]
      wakeOnLostTouch - WebIDL type: boolean
    • addAggregate

      public boolean addAggregate(PxAggregate aggregate)
      Parameters:
      aggregate - WebIDL type: PxAggregate [Ref]
      Returns:
      WebIDL type: boolean
    • removeAggregate

      public void removeAggregate(PxAggregate aggregate)
      Parameters:
      aggregate - WebIDL type: PxAggregate [Ref]
    • removeAggregate

      public void removeAggregate(PxAggregate aggregate, boolean wakeOnLostTouch)
      Parameters:
      aggregate - WebIDL type: PxAggregate [Ref]
      wakeOnLostTouch - WebIDL type: boolean
    • addCollection

      public boolean addCollection(PxCollection collection)
      Parameters:
      collection - WebIDL type: PxCollection [Const, Ref]
      Returns:
      WebIDL type: boolean
    • getWakeCounterResetValue

      public float getWakeCounterResetValue()
      Returns:
      WebIDL type: float
    • shiftOrigin

      public void shiftOrigin(PxVec3 shift)
      Parameters:
      shift - WebIDL type: PxVec3 [Const, Ref]
    • addArticulation

      public boolean addArticulation(PxArticulationReducedCoordinate articulation)
      Parameters:
      articulation - WebIDL type: PxArticulationReducedCoordinate [Ref]
      Returns:
      WebIDL type: boolean
    • removeArticulation

      public void removeArticulation(PxArticulationReducedCoordinate articulation)
      Parameters:
      articulation - WebIDL type: PxArticulationReducedCoordinate [Ref]
    • removeArticulation

      public void removeArticulation(PxArticulationReducedCoordinate articulation, boolean wakeOnLostTouch)
      Parameters:
      articulation - WebIDL type: PxArticulationReducedCoordinate [Ref]
      wakeOnLostTouch - WebIDL type: boolean
    • getNbActors

      public int getNbActors(PxActorTypeFlags types)
      Parameters:
      types - WebIDL type: PxActorTypeFlags [Ref]
      Returns:
      WebIDL type: unsigned long
    • getNbSoftBodies

      public int getNbSoftBodies()
      Returns:
      WebIDL type: unsigned long [Platforms=windows;linux, Value]
    • getNbParticleSystems

      public int getNbParticleSystems(PxParticleSolverTypeEnum type)
      Parameters:
      type - WebIDL type: PxParticleSolverTypeEnum [enum]
      Returns:
      WebIDL type: unsigned long [Platforms=windows;linux, Value]
    • getNbArticulations

      public int getNbArticulations()
      Returns:
      WebIDL type: unsigned long
    • getNbConstraints

      public int getNbConstraints()
      Returns:
      WebIDL type: unsigned long
    • getNbAggregates

      public int getNbAggregates()
      Returns:
      WebIDL type: unsigned long
    • setDominanceGroupPair

      public void setDominanceGroupPair(byte group1, byte group2, PxDominanceGroupPair dominance)
      Parameters:
      group1 - WebIDL type: octet
      group2 - WebIDL type: octet
      dominance - WebIDL type: PxDominanceGroupPair [Const, Ref]
    • getDominanceGroupPair

      public PxDominanceGroupPair getDominanceGroupPair(byte group1, byte group2)
      Parameters:
      group1 - WebIDL type: octet
      group2 - WebIDL type: octet
      Returns:
      WebIDL type: PxDominanceGroupPair [Platforms=windows;linux, Value]
    • getCpuDispatcher

      public PxCpuDispatcher getCpuDispatcher()
      Returns:
      WebIDL type: PxCpuDispatcher
    • getCudaContextManager

      public PxCudaContextManager getCudaContextManager()
      Returns:
      WebIDL type: PxCudaContextManager [Platforms=windows;linux]
    • createClient

      public byte createClient()
      Returns:
      WebIDL type: octet
    • setSimulationEventCallback

      public void setSimulationEventCallback(PxSimulationEventCallback callback)
      Parameters:
      callback - WebIDL type: PxSimulationEventCallback
    • getSimulationEventCallback

      public PxSimulationEventCallback getSimulationEventCallback()
      Returns:
      WebIDL type: PxSimulationEventCallback
    • setFilterShaderData

      public void setFilterShaderData(NativeObject data, int dataSize)
      Parameters:
      data - WebIDL type: VoidPtr [Const]
      dataSize - WebIDL type: unsigned long
    • getFilterShaderData

      public NativeObject getFilterShaderData()
      Returns:
      WebIDL type: VoidPtr [Const]
    • getFilterShaderDataSize

      public int getFilterShaderDataSize()
      Returns:
      WebIDL type: unsigned long
    • getFilterShader

      public PxSimulationFilterShader getFilterShader()
      Returns:
      WebIDL type: PxSimulationFilterShader [Value]
    • resetFiltering

      public boolean resetFiltering(PxActor actor)
      Parameters:
      actor - WebIDL type: PxActor [Ref]
      Returns:
      WebIDL type: boolean
    • getKinematicKinematicFilteringMode

      public PxPairFilteringModeEnum getKinematicKinematicFilteringMode()
      Returns:
      WebIDL type: PxPairFilteringModeEnum [enum]
    • getStaticKinematicFilteringMode

      public PxPairFilteringModeEnum getStaticKinematicFilteringMode()
      Returns:
      WebIDL type: PxPairFilteringModeEnum [enum]
    • simulate

      public boolean simulate(float elapsedTime)
      Parameters:
      elapsedTime - WebIDL type: float
      Returns:
      WebIDL type: boolean
    • simulate

      public boolean simulate(float elapsedTime, PxBaseTask completionTask)
      Parameters:
      elapsedTime - WebIDL type: float
      completionTask - WebIDL type: PxBaseTask
      Returns:
      WebIDL type: boolean
    • simulate

      public boolean simulate(float elapsedTime, PxBaseTask completionTask, NativeObject scratchMemBlock)
      Parameters:
      elapsedTime - WebIDL type: float
      completionTask - WebIDL type: PxBaseTask
      scratchMemBlock - WebIDL type: VoidPtr
      Returns:
      WebIDL type: boolean
    • simulate

      public boolean simulate(float elapsedTime, PxBaseTask completionTask, NativeObject scratchMemBlock, int scratchMemBlockSize)
      Parameters:
      elapsedTime - WebIDL type: float
      completionTask - WebIDL type: PxBaseTask
      scratchMemBlock - WebIDL type: VoidPtr
      scratchMemBlockSize - WebIDL type: unsigned long
      Returns:
      WebIDL type: boolean
    • simulate

      public boolean simulate(float elapsedTime, PxBaseTask completionTask, NativeObject scratchMemBlock, int scratchMemBlockSize, boolean controlSimulation)
      Parameters:
      elapsedTime - WebIDL type: float
      completionTask - WebIDL type: PxBaseTask
      scratchMemBlock - WebIDL type: VoidPtr
      scratchMemBlockSize - WebIDL type: unsigned long
      controlSimulation - WebIDL type: boolean
      Returns:
      WebIDL type: boolean
    • advance

      public boolean advance()
      Returns:
      WebIDL type: boolean
    • advance

      public boolean advance(PxBaseTask completionTask)
      Parameters:
      completionTask - WebIDL type: PxBaseTask
      Returns:
      WebIDL type: boolean
    • collide

      public boolean collide(float elapsedTime)
      Parameters:
      elapsedTime - WebIDL type: float
      Returns:
      WebIDL type: boolean
    • collide

      public boolean collide(float elapsedTime, PxBaseTask completionTask)
      Parameters:
      elapsedTime - WebIDL type: float
      completionTask - WebIDL type: PxBaseTask
      Returns:
      WebIDL type: boolean
    • collide

      public boolean collide(float elapsedTime, PxBaseTask completionTask, NativeObject scratchMemBlock)
      Parameters:
      elapsedTime - WebIDL type: float
      completionTask - WebIDL type: PxBaseTask
      scratchMemBlock - WebIDL type: VoidPtr
      Returns:
      WebIDL type: boolean
    • collide

      public boolean collide(float elapsedTime, PxBaseTask completionTask, NativeObject scratchMemBlock, int scratchMemBlockSize)
      Parameters:
      elapsedTime - WebIDL type: float
      completionTask - WebIDL type: PxBaseTask
      scratchMemBlock - WebIDL type: VoidPtr
      scratchMemBlockSize - WebIDL type: unsigned long
      Returns:
      WebIDL type: boolean
    • collide

      public boolean collide(float elapsedTime, PxBaseTask completionTask, NativeObject scratchMemBlock, int scratchMemBlockSize, boolean controlSimulation)
      Parameters:
      elapsedTime - WebIDL type: float
      completionTask - WebIDL type: PxBaseTask
      scratchMemBlock - WebIDL type: VoidPtr
      scratchMemBlockSize - WebIDL type: unsigned long
      controlSimulation - WebIDL type: boolean
      Returns:
      WebIDL type: boolean
    • checkResults

      public boolean checkResults()
      Returns:
      WebIDL type: boolean
    • checkResults

      public boolean checkResults(boolean block)
      Parameters:
      block - WebIDL type: boolean
      Returns:
      WebIDL type: boolean
    • fetchCollision

      public boolean fetchCollision()
      Returns:
      WebIDL type: boolean
    • fetchCollision

      public boolean fetchCollision(boolean block)
      Parameters:
      block - WebIDL type: boolean
      Returns:
      WebIDL type: boolean
    • fetchResults

      public boolean fetchResults()
      Returns:
      WebIDL type: boolean
    • fetchResults

      public boolean fetchResults(boolean block)
      Parameters:
      block - WebIDL type: boolean
      Returns:
      WebIDL type: boolean
    • processCallbacks

      public void processCallbacks(PxBaseTask continuation)
      Parameters:
      continuation - WebIDL type: PxBaseTask
    • fetchResultsParticleSystem

      public void fetchResultsParticleSystem()
    • flushSimulation

      public void flushSimulation()
    • flushSimulation

      public void flushSimulation(boolean sendPendingReports)
      Parameters:
      sendPendingReports - WebIDL type: boolean
    • setGravity

      public void setGravity(PxVec3 vec)
      Parameters:
      vec - WebIDL type: PxVec3 [Const, Ref]
    • getGravity

      public PxVec3 getGravity()
      Returns:
      WebIDL type: PxVec3 [Value]
    • setBounceThresholdVelocity

      public void setBounceThresholdVelocity(float t)
      Parameters:
      t - WebIDL type: float
    • getBounceThresholdVelocity

      public float getBounceThresholdVelocity()
      Returns:
      WebIDL type: float
    • setCCDMaxPasses

      public void setCCDMaxPasses(int ccdMaxPasses)
      Parameters:
      ccdMaxPasses - WebIDL type: unsigned long
    • getCCDMaxPasses

      public int getCCDMaxPasses()
      Returns:
      WebIDL type: unsigned long
    • setCCDMaxSeparation

      public void setCCDMaxSeparation(float t)
      Parameters:
      t - WebIDL type: float
    • getCCDMaxSeparation

      public float getCCDMaxSeparation()
      Returns:
      WebIDL type: float
    • setCCDThreshold

      public void setCCDThreshold(float t)
      Parameters:
      t - WebIDL type: float
    • getCCDThreshold

      public float getCCDThreshold()
      Returns:
      WebIDL type: float
    • setMaxBiasCoefficient

      public void setMaxBiasCoefficient(float t)
      Parameters:
      t - WebIDL type: float
    • getMaxBiasCoefficient

      public float getMaxBiasCoefficient()
      Returns:
      WebIDL type: float
    • setFrictionOffsetThreshold

      public void setFrictionOffsetThreshold(float t)
      Parameters:
      t - WebIDL type: float
    • getFrictionOffsetThreshold

      public float getFrictionOffsetThreshold()
      Returns:
      WebIDL type: float
    • setFrictionCorrelationDistance

      public void setFrictionCorrelationDistance(float t)
      Parameters:
      t - WebIDL type: float
    • getFrictionCorrelationDistance

      public float getFrictionCorrelationDistance()
      Returns:
      WebIDL type: float
    • getFrictionType

      public PxFrictionTypeEnum getFrictionType()
      Returns:
      WebIDL type: PxFrictionTypeEnum [enum]
    • getSolverType

      public PxSolverTypeEnum getSolverType()
      Returns:
      WebIDL type: PxSolverTypeEnum [enum]
    • getRenderBuffer

      public PxRenderBuffer getRenderBuffer()
      Returns:
      WebIDL type: PxRenderBuffer [Const, Ref]
    • setVisualizationParameter

      public boolean setVisualizationParameter(PxVisualizationParameterEnum param, float value)
      Parameters:
      param - WebIDL type: PxVisualizationParameterEnum [enum]
      value - WebIDL type: float
      Returns:
      WebIDL type: boolean
    • getVisualizationParameter

      public float getVisualizationParameter(PxVisualizationParameterEnum paramEnum)
      Parameters:
      paramEnum - WebIDL type: PxVisualizationParameterEnum [enum]
      Returns:
      WebIDL type: float
    • setVisualizationCullingBox

      public void setVisualizationCullingBox(PxBounds3 box)
      Parameters:
      box - WebIDL type: PxBounds3 [Const, Ref]
    • getVisualizationCullingBox

      public PxBounds3 getVisualizationCullingBox()
      Returns:
      WebIDL type: PxBounds3 [Value]
    • getSimulationStatistics

      public void getSimulationStatistics(PxSimulationStatistics stats)
      Parameters:
      stats - WebIDL type: PxSimulationStatistics [Ref]
    • getBroadPhaseType

      public PxBroadPhaseTypeEnum getBroadPhaseType()
      Returns:
      WebIDL type: PxBroadPhaseTypeEnum [enum]
    • getBroadPhaseCaps

      public boolean getBroadPhaseCaps(PxBroadPhaseCaps caps)
      Parameters:
      caps - WebIDL type: PxBroadPhaseCaps [Ref]
      Returns:
      WebIDL type: boolean
    • getNbBroadPhaseRegions

      public int getNbBroadPhaseRegions()
      Returns:
      WebIDL type: unsigned long
    • getBroadPhaseRegions

      public int getBroadPhaseRegions(PxBroadPhaseRegionInfo userBuffer, int bufferSize)
      Parameters:
      userBuffer - WebIDL type: PxBroadPhaseRegionInfo
      bufferSize - WebIDL type: unsigned long
      Returns:
      WebIDL type: unsigned long
    • getBroadPhaseRegions

      public int getBroadPhaseRegions(PxBroadPhaseRegionInfo userBuffer, int bufferSize, int startIndex)
      Parameters:
      userBuffer - WebIDL type: PxBroadPhaseRegionInfo
      bufferSize - WebIDL type: unsigned long
      startIndex - WebIDL type: unsigned long
      Returns:
      WebIDL type: unsigned long
    • addBroadPhaseRegion

      public int addBroadPhaseRegion(PxBroadPhaseRegion region)
      Parameters:
      region - WebIDL type: PxBroadPhaseRegion [Const, Ref]
      Returns:
      WebIDL type: unsigned long
    • addBroadPhaseRegion

      public int addBroadPhaseRegion(PxBroadPhaseRegion region, boolean populateRegion)
      Parameters:
      region - WebIDL type: PxBroadPhaseRegion [Const, Ref]
      populateRegion - WebIDL type: boolean
      Returns:
      WebIDL type: unsigned long
    • removeBroadPhaseRegion

      public boolean removeBroadPhaseRegion(int handle)
      Parameters:
      handle - WebIDL type: unsigned long
      Returns:
      WebIDL type: boolean
    • lockRead

      public void lockRead()
    • lockRead

      public void lockRead(String file)
      Parameters:
      file - WebIDL type: DOMString [Const]
    • lockRead

      public void lockRead(String file, int line)
      Parameters:
      file - WebIDL type: DOMString [Const]
      line - WebIDL type: unsigned long
    • unlockRead

      public void unlockRead()
    • lockWrite

      public void lockWrite()
    • lockWrite

      public void lockWrite(String file)
      Parameters:
      file - WebIDL type: DOMString [Const]
    • lockWrite

      public void lockWrite(String file, int line)
      Parameters:
      file - WebIDL type: DOMString [Const]
      line - WebIDL type: unsigned long
    • unlockWrite

      public void unlockWrite()
    • setNbContactDataBlocks

      public void setNbContactDataBlocks(int numBlocks)
      Parameters:
      numBlocks - WebIDL type: unsigned long
    • getNbContactDataBlocksUsed

      public int getNbContactDataBlocksUsed()
      Returns:
      WebIDL type: unsigned long
    • getMaxNbContactDataBlocksUsed

      public int getMaxNbContactDataBlocksUsed()
      Returns:
      WebIDL type: unsigned long
    • getContactReportStreamBufferSize

      public int getContactReportStreamBufferSize()
      Returns:
      WebIDL type: unsigned long
    • setSolverBatchSize

      public void setSolverBatchSize(int solverBatchSize)
      Parameters:
      solverBatchSize - WebIDL type: unsigned long
    • getSolverBatchSize

      public int getSolverBatchSize()
      Returns:
      WebIDL type: unsigned long
    • setSolverArticulationBatchSize

      public void setSolverArticulationBatchSize(int solverBatchSize)
      Parameters:
      solverBatchSize - WebIDL type: unsigned long
    • getSolverArticulationBatchSize

      public int getSolverArticulationBatchSize()
      Returns:
      WebIDL type: unsigned long
    • release

      public void release()
    • setFlag

      public void setFlag(PxSceneFlagEnum flag, boolean value)
      Parameters:
      flag - WebIDL type: PxSceneFlagEnum [enum]
      value - WebIDL type: boolean
    • getFlags

      public PxSceneFlags getFlags()
      Returns:
      WebIDL type: PxSceneFlags [Value]
    • setLimits

      public void setLimits(PxSceneLimits limits)
      Parameters:
      limits - WebIDL type: PxSceneLimits [Const, Ref]
    • getLimits

      public PxSceneLimits getLimits()
      Returns:
      WebIDL type: PxSceneLimits [Value]
    • getPhysics

      public PxPhysics getPhysics()
      Returns:
      WebIDL type: PxPhysics [Ref]
    • getTimestamp

      public int getTimestamp()
      Returns:
      WebIDL type: unsigned long