java.lang.Object
physx.NativeObject
physx.physics.PxSceneQuerySystemBase
physx.physics.PxSceneSQSystem
physx.physics.PxScene
-
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 TypeMethodDescriptionbooleanbooleanbooleanaddAggregate(PxAggregate aggregate) booleanaddArticulation(PxArticulationReducedCoordinate articulation) intintaddBroadPhaseRegion(PxBroadPhaseRegion region, boolean populateRegion) booleanaddCollection(PxCollection collection) booleanadvance()booleanadvance(PxBaseTask completionTask) static PxScenearrayGet(long baseAddress, int index) booleanbooleancheckResults(boolean block) booleancollide(float elapsedTime) booleancollide(float elapsedTime, PxBaseTask completionTask) booleancollide(float elapsedTime, PxBaseTask completionTask, NativeObject scratchMemBlock) booleancollide(float elapsedTime, PxBaseTask completionTask, NativeObject scratchMemBlock, int scratchMemBlockSize) booleancollide(float elapsedTime, PxBaseTask completionTask, NativeObject scratchMemBlock, int scratchMemBlockSize, boolean controlSimulation) bytebooleanbooleanfetchCollision(boolean block) booleanbooleanfetchResults(boolean block) voidvoidvoidflushSimulation(boolean sendPendingReports) floatbooleanintgetBroadPhaseRegions(PxBroadPhaseRegionInfo userBuffer, int bufferSize) intgetBroadPhaseRegions(PxBroadPhaseRegionInfo userBuffer, int bufferSize, int startIndex) intfloatfloatintgetDominanceGroupPair(byte group1, byte group2) intgetFlags()floatfloatfloatintintgetNbActors(PxActorTypeFlags types) intintintintintintintvoidintintintfloatfloatvoidlockRead()voidvoidvoidvoidvoidvoidprocessCallbacks(PxBaseTask continuation) voidrelease()voidremoveActor(PxActor actor) voidremoveActor(PxActor actor, boolean wakeOnLostTouch) voidremoveAggregate(PxAggregate aggregate) voidremoveAggregate(PxAggregate aggregate, boolean wakeOnLostTouch) voidremoveArticulation(PxArticulationReducedCoordinate articulation) voidremoveArticulation(PxArticulationReducedCoordinate articulation, boolean wakeOnLostTouch) booleanremoveBroadPhaseRegion(int handle) booleanresetFiltering(PxActor actor) voidsetBounceThresholdVelocity(float t) voidsetCCDMaxPasses(int ccdMaxPasses) voidsetCCDMaxSeparation(float t) voidsetCCDThreshold(float t) voidsetDominanceGroupPair(byte group1, byte group2, PxDominanceGroupPair dominance) voidsetFilterShaderData(NativeObject data, int dataSize) voidsetFlag(PxSceneFlagEnum flag, boolean value) voidsetFrictionCorrelationDistance(float t) voidsetFrictionOffsetThreshold(float t) voidsetGravity(PxVec3 vec) voidsetLimits(PxSceneLimits limits) voidsetMaxBiasCoefficient(float t) voidsetNbContactDataBlocks(int numBlocks) voidvoidsetSolverArticulationBatchSize(int solverBatchSize) voidsetSolverBatchSize(int solverBatchSize) voidsetUserData(NativeObject value) voidbooleansetVisualizationParameter(PxVisualizationParameterEnum param, float value) voidshiftOrigin(PxVec3 shift) booleansimulate(float elapsedTime) booleansimulate(float elapsedTime, PxBaseTask completionTask) booleansimulate(float elapsedTime, PxBaseTask completionTask, NativeObject scratchMemBlock) booleansimulate(float elapsedTime, PxBaseTask completionTask, NativeObject scratchMemBlock, int scratchMemBlockSize) booleansimulate(float elapsedTime, PxBaseTask completionTask, NativeObject scratchMemBlock, int scratchMemBlockSize, boolean controlSimulation) voidvoidstatic PxScenewrapPointer(long address) Methods inherited from class physx.physics.PxSceneSQSystem
checkQueries, checkQueries, fetchQueries, fetchQueries, flushQueryUpdates, forceDynamicTreeRebuild, getDynamicStructure, getSceneQueryStaticTimestamp, getSceneQueryUpdateMode, getStaticStructure, sceneQueriesUpdate, sceneQueriesUpdate, sceneQueriesUpdate, setSceneQueryUpdateModeMethods inherited from class physx.physics.PxSceneQuerySystemBase
flushUpdates, forceRebuildDynamicTree, getDynamicTreeRebuildRateHint, getStaticTimestamp, getUpdateMode, overlap, overlap, raycast, raycast, raycast, setDynamicTreeRebuildRateHint, setUpdateMode, sweep, sweep, sweepMethods 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
-
PxScene
protected PxScene() -
PxScene
protected PxScene(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
getUserData
- Returns:
- WebIDL type: VoidPtr
-
setUserData
- Parameters:
value- WebIDL type: VoidPtr
-
addActor
- Parameters:
actor- WebIDL type:PxActor[Ref]- Returns:
- WebIDL type: boolean
-
addActor
-
removeActor
- Parameters:
actor- WebIDL type:PxActor[Ref]
-
removeActor
- Parameters:
actor- WebIDL type:PxActor[Ref]wakeOnLostTouch- WebIDL type: boolean
-
addAggregate
- Parameters:
aggregate- WebIDL type:PxAggregate[Ref]- Returns:
- WebIDL type: boolean
-
removeAggregate
- Parameters:
aggregate- WebIDL type:PxAggregate[Ref]
-
removeAggregate
- Parameters:
aggregate- WebIDL type:PxAggregate[Ref]wakeOnLostTouch- WebIDL type: boolean
-
addCollection
- Parameters:
collection- WebIDL type:PxCollection[Const, Ref]- Returns:
- WebIDL type: boolean
-
getWakeCounterResetValue
public float getWakeCounterResetValue()- Returns:
- WebIDL type: float
-
shiftOrigin
- Parameters:
shift- WebIDL type:PxVec3[Const, Ref]
-
addArticulation
- Parameters:
articulation- WebIDL type:PxArticulationReducedCoordinate[Ref]- Returns:
- WebIDL type: boolean
-
removeArticulation
- 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
- 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
- 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
- Parameters:
group1- WebIDL type: octetgroup2- WebIDL type: octetdominance- WebIDL type:PxDominanceGroupPair[Const, Ref]
-
getDominanceGroupPair
- Parameters:
group1- WebIDL type: octetgroup2- WebIDL type: octet- Returns:
- WebIDL type:
PxDominanceGroupPair[Platforms=windows;linux, Value]
-
getCpuDispatcher
- Returns:
- WebIDL type:
PxCpuDispatcher
-
getCudaContextManager
- Returns:
- WebIDL type:
PxCudaContextManager[Platforms=windows;linux]
-
createClient
public byte createClient()- Returns:
- WebIDL type: octet
-
setSimulationEventCallback
- Parameters:
callback- WebIDL type:PxSimulationEventCallback
-
getSimulationEventCallback
- Returns:
- WebIDL type:
PxSimulationEventCallback
-
setFilterShaderData
- Parameters:
data- WebIDL type: VoidPtr [Const]dataSize- WebIDL type: unsigned long
-
getFilterShaderData
- Returns:
- WebIDL type: VoidPtr [Const]
-
getFilterShaderDataSize
public int getFilterShaderDataSize()- Returns:
- WebIDL type: unsigned long
-
getFilterShader
- Returns:
- WebIDL type:
PxSimulationFilterShader[Value]
-
resetFiltering
- Parameters:
actor- WebIDL type:PxActor[Ref]- Returns:
- WebIDL type: boolean
-
getKinematicKinematicFilteringMode
- Returns:
- WebIDL type:
PxPairFilteringModeEnum[enum]
-
getStaticKinematicFilteringMode
- Returns:
- WebIDL type:
PxPairFilteringModeEnum[enum]
-
simulate
public boolean simulate(float elapsedTime) - Parameters:
elapsedTime- WebIDL type: float- Returns:
- WebIDL type: boolean
-
simulate
- Parameters:
elapsedTime- WebIDL type: floatcompletionTask- WebIDL type:PxBaseTask- Returns:
- WebIDL type: boolean
-
simulate
- Parameters:
elapsedTime- WebIDL type: floatcompletionTask- WebIDL type:PxBaseTaskscratchMemBlock- WebIDL type: VoidPtr- Returns:
- WebIDL type: boolean
-
simulate
public boolean simulate(float elapsedTime, PxBaseTask completionTask, NativeObject scratchMemBlock, int scratchMemBlockSize) - Parameters:
elapsedTime- WebIDL type: floatcompletionTask- WebIDL type:PxBaseTaskscratchMemBlock- WebIDL type: VoidPtrscratchMemBlockSize- 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: floatcompletionTask- WebIDL type:PxBaseTaskscratchMemBlock- WebIDL type: VoidPtrscratchMemBlockSize- WebIDL type: unsigned longcontrolSimulation- WebIDL type: boolean- Returns:
- WebIDL type: boolean
-
advance
public boolean advance()- Returns:
- WebIDL type: boolean
-
advance
- 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
- Parameters:
elapsedTime- WebIDL type: floatcompletionTask- WebIDL type:PxBaseTask- Returns:
- WebIDL type: boolean
-
collide
- Parameters:
elapsedTime- WebIDL type: floatcompletionTask- WebIDL type:PxBaseTaskscratchMemBlock- WebIDL type: VoidPtr- Returns:
- WebIDL type: boolean
-
collide
public boolean collide(float elapsedTime, PxBaseTask completionTask, NativeObject scratchMemBlock, int scratchMemBlockSize) - Parameters:
elapsedTime- WebIDL type: floatcompletionTask- WebIDL type:PxBaseTaskscratchMemBlock- WebIDL type: VoidPtrscratchMemBlockSize- 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: floatcompletionTask- WebIDL type:PxBaseTaskscratchMemBlock- WebIDL type: VoidPtrscratchMemBlockSize- WebIDL type: unsigned longcontrolSimulation- 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
- 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
- Parameters:
vec- WebIDL type:PxVec3[Const, Ref]
-
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
- Returns:
- WebIDL type:
PxFrictionTypeEnum[enum]
-
getSolverType
- Returns:
- WebIDL type:
PxSolverTypeEnum[enum]
-
getRenderBuffer
- Returns:
- WebIDL type:
PxRenderBuffer[Const, Ref]
-
setVisualizationParameter
- Parameters:
param- WebIDL type:PxVisualizationParameterEnum[enum]value- WebIDL type: float- Returns:
- WebIDL type: boolean
-
getVisualizationParameter
- Parameters:
paramEnum- WebIDL type:PxVisualizationParameterEnum[enum]- Returns:
- WebIDL type: float
-
setVisualizationCullingBox
- Parameters:
box- WebIDL type:PxBounds3[Const, Ref]
-
getVisualizationCullingBox
- Returns:
- WebIDL type:
PxBounds3[Value]
-
getSimulationStatistics
- Parameters:
stats- WebIDL type:PxSimulationStatistics[Ref]
-
getBroadPhaseType
- Returns:
- WebIDL type:
PxBroadPhaseTypeEnum[enum]
-
getBroadPhaseCaps
- Parameters:
caps- WebIDL type:PxBroadPhaseCaps[Ref]- Returns:
- WebIDL type: boolean
-
getNbBroadPhaseRegions
public int getNbBroadPhaseRegions()- Returns:
- WebIDL type: unsigned long
-
getBroadPhaseRegions
- Parameters:
userBuffer- WebIDL type:PxBroadPhaseRegionInfobufferSize- WebIDL type: unsigned long- Returns:
- WebIDL type: unsigned long
-
getBroadPhaseRegions
- Parameters:
userBuffer- WebIDL type:PxBroadPhaseRegionInfobufferSize- WebIDL type: unsigned longstartIndex- WebIDL type: unsigned long- Returns:
- WebIDL type: unsigned long
-
addBroadPhaseRegion
- Parameters:
region- WebIDL type:PxBroadPhaseRegion[Const, Ref]- Returns:
- WebIDL type: unsigned long
-
addBroadPhaseRegion
- 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
- Parameters:
file- WebIDL type: DOMString [Const]
-
lockRead
- Parameters:
file- WebIDL type: DOMString [Const]line- WebIDL type: unsigned long
-
unlockRead
public void unlockRead() -
lockWrite
public void lockWrite() -
lockWrite
- Parameters:
file- WebIDL type: DOMString [Const]
-
lockWrite
- 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
- Parameters:
flag- WebIDL type:PxSceneFlagEnum[enum]value- WebIDL type: boolean
-
getFlags
- Returns:
- WebIDL type:
PxSceneFlags[Value]
-
setLimits
- Parameters:
limits- WebIDL type:PxSceneLimits[Const, Ref]
-
getLimits
- Returns:
- WebIDL type:
PxSceneLimits[Value]
-
getPhysics
- Returns:
- WebIDL type:
PxPhysics[Ref]
-
getTimestamp
public int getTimestamp()- Returns:
- WebIDL type: unsigned long
-