Package physx.physics

Class PxScene

    • Constructor Detail

      • PxScene

        protected PxScene()
      • PxScene

        protected PxScene​(long address)
    • Method Detail

      • wrapPointer

        public static PxScene wrapPointer​(long address)
      • getUserData

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

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

        public void addActor​(PxActor actor)
        Parameters:
        actor - WebIDL type: PxActor [Ref]
      • 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 void addAggregate​(PxAggregate aggregate)
        Parameters:
        aggregate - WebIDL type: PxAggregate [Ref]
      • 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 void addCollection​(PxCollection collection)
        Parameters:
        collection - WebIDL type: PxCollection [Const, Ref]
      • getWakeCounterResetValue

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

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

        public void removeArticulation​(PxArticulationBase articulation,
                                       boolean wakeOnLostTouch)
        Parameters:
        articulation - WebIDL type: PxArticulationBase [Ref]
        wakeOnLostTouch - WebIDL type: boolean
      • 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]
      • createClient

        public byte createClient()
        Returns:
        WebIDL type: octet
      • 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
      • resetFiltering

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

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

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

        public void simulate​(float elapsedTime)
        Parameters:
        elapsedTime - WebIDL type: float
      • simulate

        public void simulate​(float elapsedTime,
                             PxBaseTask completionTask)
        Parameters:
        elapsedTime - WebIDL type: float
        completionTask - WebIDL type: PxBaseTask
      • simulate

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

        public void 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
      • simulate

        public void 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
      • advance

        public void advance()
      • advance

        public void advance​(PxBaseTask completionTask)
        Parameters:
        completionTask - WebIDL type: PxBaseTask
      • collide

        public void collide​(float elapsedTime)
        Parameters:
        elapsedTime - WebIDL type: float
      • collide

        public void collide​(float elapsedTime,
                            PxBaseTask completionTask)
        Parameters:
        elapsedTime - WebIDL type: float
        completionTask - WebIDL type: PxBaseTask
      • collide

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

        public void 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
      • collide

        public void 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
      • 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
      • 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
      • getFrictionOffsetThreshold

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

        public void setFrictionType​(int frictionType)
        Parameters:
        frictionType - WebIDL type: PxFrictionTypeEnum [enum]
      • getFrictionType

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

        public void flushQueryUpdates()
      • setDynamicTreeRebuildRateHint

        public void setDynamicTreeRebuildRateHint​(int dynamicTreeRebuildRateHint)
        Parameters:
        dynamicTreeRebuildRateHint - WebIDL type: unsigned long
      • getDynamicTreeRebuildRateHint

        public int getDynamicTreeRebuildRateHint()
        Returns:
        WebIDL type: unsigned long
      • forceDynamicTreeRebuild

        public void forceDynamicTreeRebuild​(boolean rebuildStaticStructure,
                                            boolean rebuildDynamicStructure)
        Parameters:
        rebuildStaticStructure - WebIDL type: boolean
        rebuildDynamicStructure - WebIDL type: boolean
      • setSceneQueryUpdateMode

        public void setSceneQueryUpdateMode​(int updateMode)
        Parameters:
        updateMode - WebIDL type: PxSceneQueryUpdateModeEnum [enum]
      • sceneQueriesUpdate

        public void sceneQueriesUpdate()
      • sceneQueriesUpdate

        public void sceneQueriesUpdate​(PxBaseTask completionTask)
        Parameters:
        completionTask - WebIDL type: PxBaseTask
      • sceneQueriesUpdate

        public void sceneQueriesUpdate​(PxBaseTask completionTask,
                                       boolean controlSimulation)
        Parameters:
        completionTask - WebIDL type: PxBaseTask
        controlSimulation - WebIDL type: boolean
      • checkQueries

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

        public boolean checkQueries​(boolean block)
        Parameters:
        block - WebIDL type: boolean
        Returns:
        WebIDL type: boolean
      • fetchQueries

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

        public boolean fetchQueries​(boolean block)
        Parameters:
        block - WebIDL type: boolean
        Returns:
        WebIDL type: boolean
      • raycast

        public boolean raycast​(PxVec3 origin,
                               PxVec3 unitDir,
                               float distance,
                               PxRaycastCallback hitCall)
        Parameters:
        origin - WebIDL type: PxVec3 [Const, Ref]
        unitDir - WebIDL type: PxVec3 [Const, Ref]
        distance - WebIDL type: float
        hitCall - WebIDL type: PxRaycastCallback [Ref]
        Returns:
        WebIDL type: boolean
      • getSceneQueryStaticTimestamp

        public int getSceneQueryStaticTimestamp()
        Returns:
        WebIDL type: unsigned long
      • getBroadPhaseType

        public int 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​(java.lang.String file)
        Parameters:
        file - WebIDL type: DOMString
      • lockRead

        public void lockRead​(java.lang.String file,
                             int line)
        Parameters:
        file - WebIDL type: DOMString
        line - WebIDL type: unsigned long
      • unlockRead

        public void unlockRead()
      • lockWrite

        public void lockWrite()
      • lockWrite

        public void lockWrite​(java.lang.String file)
        Parameters:
        file - WebIDL type: DOMString
      • lockWrite

        public void lockWrite​(java.lang.String file,
                              int line)
        Parameters:
        file - WebIDL type: DOMString
        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​(int flag,
                            boolean value)
        Parameters:
        flag - WebIDL type: PxSceneFlagEnum [enum]
        value - WebIDL type: boolean
      • getTimestamp

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