public class PxScene extends NativeObject
NativeObject.Allocator<T>address, isExternallyAllocated| Modifier | Constructor and Description |
|---|---|
protected |
PxScene() |
protected |
PxScene(long address) |
checkNotNull, equals, getAddress, hashCodepublic static PxScene wrapPointer(long address)
public NativeObject getUserData()
public void setUserData(NativeObject value)
value - WebIDL type: VoidPtrpublic void addActor(PxActor actor, PxBVHStructure bvhStructure)
actor - WebIDL type: PxActor [Ref]bvhStructure - WebIDL type: PxBVHStructure [Const]public void removeActor(PxActor actor, boolean wakeOnLostTouch)
actor - WebIDL type: PxActor [Ref]wakeOnLostTouch - WebIDL type: booleanpublic void addAggregate(PxAggregate aggregate)
aggregate - WebIDL type: PxAggregate [Ref]public void removeAggregate(PxAggregate aggregate)
aggregate - WebIDL type: PxAggregate [Ref]public void removeAggregate(PxAggregate aggregate, boolean wakeOnLostTouch)
aggregate - WebIDL type: PxAggregate [Ref]wakeOnLostTouch - WebIDL type: booleanpublic void addCollection(PxCollection collection)
collection - WebIDL type: PxCollection [Const, Ref]public float getWakeCounterResetValue()
public void shiftOrigin(PxVec3 shift)
shift - WebIDL type: PxVec3 [Const, Ref]public void addArticulation(PxArticulationBase articulation)
articulation - WebIDL type: PxArticulationBase [Ref]public void removeArticulation(PxArticulationBase articulation)
articulation - WebIDL type: PxArticulationBase [Ref]public void removeArticulation(PxArticulationBase articulation, boolean wakeOnLostTouch)
articulation - WebIDL type: PxArticulationBase [Ref]wakeOnLostTouch - WebIDL type: booleanpublic int getNbActors(PxActorTypeFlags types)
types - WebIDL type: PxActorTypeFlags [Ref]public int getNbArticulations()
public int getNbConstraints()
public int getNbAggregates()
public void setDominanceGroupPair(byte group1,
byte group2,
PxDominanceGroupPair dominance)
group1 - WebIDL type: octetgroup2 - WebIDL type: octetdominance - WebIDL type: PxDominanceGroupPair [Const, Ref]public PxCpuDispatcher getCpuDispatcher()
PxCpuDispatcherpublic PxCudaContextManager getCudaContextManager()
PxCudaContextManagerpublic byte createClient()
public void setSimulationEventCallback(PxSimulationEventCallback callback)
callback - WebIDL type: PxSimulationEventCallbackpublic PxSimulationEventCallback getSimulationEventCallback()
PxSimulationEventCallbackpublic void setFilterShaderData(NativeObject data, int dataSize)
data - WebIDL type: VoidPtr [Const]dataSize - WebIDL type: unsigned longpublic NativeObject getFilterShaderData()
public int getFilterShaderDataSize()
public PxSimulationFilterShader getFilterShader()
PxSimulationFilterShader [Value]public void resetFiltering(PxActor actor)
actor - WebIDL type: PxActor [Ref]public int getKinematicKinematicFilteringMode()
PxPairFilteringModeEnum [enum]public int getStaticKinematicFilteringMode()
PxPairFilteringModeEnum [enum]public void simulate(float elapsedTime)
elapsedTime - WebIDL type: floatpublic void simulate(float elapsedTime,
PxBaseTask completionTask)
elapsedTime - WebIDL type: floatcompletionTask - WebIDL type: PxBaseTaskpublic void simulate(float elapsedTime,
PxBaseTask completionTask,
NativeObject scratchMemBlock)
elapsedTime - WebIDL type: floatcompletionTask - WebIDL type: PxBaseTaskscratchMemBlock - WebIDL type: VoidPtrpublic void simulate(float elapsedTime,
PxBaseTask completionTask,
NativeObject scratchMemBlock,
int scratchMemBlockSize)
elapsedTime - WebIDL type: floatcompletionTask - WebIDL type: PxBaseTaskscratchMemBlock - WebIDL type: VoidPtrscratchMemBlockSize - WebIDL type: unsigned longpublic void simulate(float elapsedTime,
PxBaseTask completionTask,
NativeObject scratchMemBlock,
int scratchMemBlockSize,
boolean controlSimulation)
elapsedTime - WebIDL type: floatcompletionTask - WebIDL type: PxBaseTaskscratchMemBlock - WebIDL type: VoidPtrscratchMemBlockSize - WebIDL type: unsigned longcontrolSimulation - WebIDL type: booleanpublic void advance()
public void advance(PxBaseTask completionTask)
completionTask - WebIDL type: PxBaseTaskpublic void collide(float elapsedTime)
elapsedTime - WebIDL type: floatpublic void collide(float elapsedTime,
PxBaseTask completionTask)
elapsedTime - WebIDL type: floatcompletionTask - WebIDL type: PxBaseTaskpublic void collide(float elapsedTime,
PxBaseTask completionTask,
NativeObject scratchMemBlock)
elapsedTime - WebIDL type: floatcompletionTask - WebIDL type: PxBaseTaskscratchMemBlock - WebIDL type: VoidPtrpublic void collide(float elapsedTime,
PxBaseTask completionTask,
NativeObject scratchMemBlock,
int scratchMemBlockSize)
elapsedTime - WebIDL type: floatcompletionTask - WebIDL type: PxBaseTaskscratchMemBlock - WebIDL type: VoidPtrscratchMemBlockSize - WebIDL type: unsigned longpublic void collide(float elapsedTime,
PxBaseTask completionTask,
NativeObject scratchMemBlock,
int scratchMemBlockSize,
boolean controlSimulation)
elapsedTime - WebIDL type: floatcompletionTask - WebIDL type: PxBaseTaskscratchMemBlock - WebIDL type: VoidPtrscratchMemBlockSize - WebIDL type: unsigned longcontrolSimulation - WebIDL type: booleanpublic boolean checkResults()
public boolean checkResults(boolean block)
block - WebIDL type: booleanpublic boolean fetchCollision()
public boolean fetchCollision(boolean block)
block - WebIDL type: booleanpublic boolean fetchResults()
public boolean fetchResults(boolean block)
block - WebIDL type: booleanpublic void processCallbacks(PxBaseTask continuation)
continuation - WebIDL type: PxBaseTaskpublic void flushSimulation()
public void flushSimulation(boolean sendPendingReports)
sendPendingReports - WebIDL type: booleanpublic void setBounceThresholdVelocity(float t)
t - WebIDL type: floatpublic float getBounceThresholdVelocity()
public void setCCDMaxPasses(int ccdMaxPasses)
ccdMaxPasses - WebIDL type: unsigned longpublic int getCCDMaxPasses()
public float getFrictionOffsetThreshold()
public void setFrictionType(int frictionType)
frictionType - WebIDL type: PxFrictionTypeEnum [enum]public int getFrictionType()
PxFrictionTypeEnum [enum]public void getSimulationStatistics(PxSimulationStatistics stats)
stats - WebIDL type: PxSimulationStatistics [Ref]public int getStaticStructure()
PxPruningStructureTypeEnum [enum]public int getDynamicStructure()
PxPruningStructureTypeEnum [enum]public void flushQueryUpdates()
public PxBatchQuery createBatchQuery(PxBatchQueryDesc desc)
desc - WebIDL type: PxBatchQueryDesc [Const, Ref]PxBatchQuerypublic void setDynamicTreeRebuildRateHint(int dynamicTreeRebuildRateHint)
dynamicTreeRebuildRateHint - WebIDL type: unsigned longpublic int getDynamicTreeRebuildRateHint()
public void forceDynamicTreeRebuild(boolean rebuildStaticStructure,
boolean rebuildDynamicStructure)
rebuildStaticStructure - WebIDL type: booleanrebuildDynamicStructure - WebIDL type: booleanpublic void setSceneQueryUpdateMode(int updateMode)
updateMode - WebIDL type: PxSceneQueryUpdateModeEnum [enum]public int getSceneQueryUpdateMode()
PxSceneQueryUpdateModeEnum [enum]public void sceneQueriesUpdate()
public void sceneQueriesUpdate(PxBaseTask completionTask)
completionTask - WebIDL type: PxBaseTaskpublic void sceneQueriesUpdate(PxBaseTask completionTask, boolean controlSimulation)
completionTask - WebIDL type: PxBaseTaskcontrolSimulation - WebIDL type: booleanpublic boolean checkQueries()
public boolean checkQueries(boolean block)
block - WebIDL type: booleanpublic boolean fetchQueries()
public boolean fetchQueries(boolean block)
block - WebIDL type: booleanpublic boolean raycast(PxVec3 origin, PxVec3 unitDir, float distance, PxRaycastCallback hitCall)
origin - WebIDL type: PxVec3 [Const, Ref]unitDir - WebIDL type: PxVec3 [Const, Ref]distance - WebIDL type: floathitCall - WebIDL type: PxRaycastCallback [Ref]public boolean raycast(PxVec3 origin, PxVec3 unitDir, float distance, PxRaycastCallback hitCall, PxHitFlags hitFlags)
origin - WebIDL type: PxVec3 [Const, Ref]unitDir - WebIDL type: PxVec3 [Const, Ref]distance - WebIDL type: floathitCall - WebIDL type: PxRaycastCallback [Ref]hitFlags - WebIDL type: PxHitFlags [Ref]public boolean raycast(PxVec3 origin, PxVec3 unitDir, float distance, PxRaycastCallback hitCall, PxHitFlags hitFlags, PxQueryFilterData filterData)
origin - WebIDL type: PxVec3 [Const, Ref]unitDir - WebIDL type: PxVec3 [Const, Ref]distance - WebIDL type: floathitCall - WebIDL type: PxRaycastCallback [Ref]hitFlags - WebIDL type: PxHitFlags [Ref]filterData - WebIDL type: PxQueryFilterData [Const, Ref]public boolean sweep(PxGeometry geometry, PxTransform pose, PxVec3 unitDir, float distance, PxSweepCallback hitCall)
geometry - WebIDL type: PxGeometry [Const, Ref]pose - WebIDL type: PxTransform [Const, Ref]unitDir - WebIDL type: PxVec3 [Const, Ref]distance - WebIDL type: floathitCall - WebIDL type: PxSweepCallback [Ref]public boolean sweep(PxGeometry geometry, PxTransform pose, PxVec3 unitDir, float distance, PxSweepCallback hitCall, PxHitFlags hitFlags)
geometry - WebIDL type: PxGeometry [Const, Ref]pose - WebIDL type: PxTransform [Const, Ref]unitDir - WebIDL type: PxVec3 [Const, Ref]distance - WebIDL type: floathitCall - WebIDL type: PxSweepCallback [Ref]hitFlags - WebIDL type: PxHitFlags [Ref]public boolean sweep(PxGeometry geometry, PxTransform pose, PxVec3 unitDir, float distance, PxSweepCallback hitCall, PxHitFlags hitFlags, PxQueryFilterData filterData)
geometry - WebIDL type: PxGeometry [Const, Ref]pose - WebIDL type: PxTransform [Const, Ref]unitDir - WebIDL type: PxVec3 [Const, Ref]distance - WebIDL type: floathitCall - WebIDL type: PxSweepCallback [Ref]hitFlags - WebIDL type: PxHitFlags [Ref]filterData - WebIDL type: PxQueryFilterData [Const, Ref]public boolean overlap(PxGeometry geometry, PxTransform pose, PxOverlapCallback hitCall)
geometry - WebIDL type: PxGeometry [Const, Ref]pose - WebIDL type: PxTransform [Const, Ref]hitCall - WebIDL type: PxOverlapCallback [Ref]public boolean overlap(PxGeometry geometry, PxTransform pose, PxOverlapCallback hitCall, PxQueryFilterData filterData)
geometry - WebIDL type: PxGeometry [Const, Ref]pose - WebIDL type: PxTransform [Const, Ref]hitCall - WebIDL type: PxOverlapCallback [Ref]filterData - WebIDL type: PxQueryFilterData [Const, Ref]public int getSceneQueryStaticTimestamp()
public int getBroadPhaseType()
PxBroadPhaseTypeEnum [enum]public boolean getBroadPhaseCaps(PxBroadPhaseCaps caps)
caps - WebIDL type: PxBroadPhaseCaps [Ref]public int getNbBroadPhaseRegions()
public int getBroadPhaseRegions(PxBroadPhaseRegionInfo userBuffer, int bufferSize)
userBuffer - WebIDL type: PxBroadPhaseRegionInfobufferSize - WebIDL type: unsigned longpublic int getBroadPhaseRegions(PxBroadPhaseRegionInfo userBuffer, int bufferSize, int startIndex)
userBuffer - WebIDL type: PxBroadPhaseRegionInfobufferSize - WebIDL type: unsigned longstartIndex - WebIDL type: unsigned longpublic int addBroadPhaseRegion(PxBroadPhaseRegion region)
region - WebIDL type: PxBroadPhaseRegion [Const, Ref]public int addBroadPhaseRegion(PxBroadPhaseRegion region, boolean populateRegion)
region - WebIDL type: PxBroadPhaseRegion [Const, Ref]populateRegion - WebIDL type: booleanpublic boolean removeBroadPhaseRegion(int handle)
handle - WebIDL type: unsigned longpublic void lockRead()
public void lockRead(java.lang.String file)
file - WebIDL type: DOMStringpublic void lockRead(java.lang.String file,
int line)
file - WebIDL type: DOMStringline - WebIDL type: unsigned longpublic void unlockRead()
public void lockWrite()
public void lockWrite(java.lang.String file)
file - WebIDL type: DOMStringpublic void lockWrite(java.lang.String file,
int line)
file - WebIDL type: DOMStringline - WebIDL type: unsigned longpublic void unlockWrite()
public void setNbContactDataBlocks(int numBlocks)
numBlocks - WebIDL type: unsigned longpublic int getNbContactDataBlocksUsed()
public int getMaxNbContactDataBlocksUsed()
public int getContactReportStreamBufferSize()
public void setSolverBatchSize(int solverBatchSize)
solverBatchSize - WebIDL type: unsigned longpublic int getSolverBatchSize()
public void setSolverArticulationBatchSize(int solverBatchSize)
solverBatchSize - WebIDL type: unsigned longpublic int getSolverArticulationBatchSize()
public void release()
public void setFlag(int flag,
boolean value)
flag - WebIDL type: PxSceneFlagEnum [enum]value - WebIDL type: booleanpublic PxSceneFlags getFlags()
PxSceneFlags [Value]public void setLimits(PxSceneLimits limits)
limits - WebIDL type: PxSceneLimits [Const, Ref]public PxSceneLimits getLimits()
PxSceneLimits [Value]public int getTimestamp()