Package physx.physics
Class PxScene
- java.lang.Object
-
- physx.NativeObject
-
- physx.physics.PxScene
-
public class PxScene extends NativeObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T>
-
-
Field Summary
-
Fields inherited from class physx.NativeObject
address, isExternallyAllocated
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddActor(PxActor actor)voidaddActor(PxActor actor, PxBVHStructure bvhStructure)PxBatchQuerycreateBatchQuery(PxBatchQueryDesc desc)booleanfetchResults()booleanfetchResults(boolean block)PxSceneFlagsgetFlags()PxVec3getGravity()PxPhysicsgetPhysics()intgetTimestamp()voidrelease()voidremoveActor(PxActor actor)voidremoveActor(PxActor actor, boolean wakeOnLostTouch)voidsetFlag(int flag, boolean value)voidsetGravity(PxVec3 vec)voidsimulate(float elapsedTime)voidsimulate(float elapsedTime, PxBaseTask completionTask)voidsimulate(float elapsedTime, PxBaseTask completionTask, NativeObject scratchMemBlock)voidsimulate(float elapsedTime, PxBaseTask completionTask, NativeObject scratchMemBlock, int scratchMemBlockSize)voidsimulate(float elapsedTime, PxBaseTask completionTask, NativeObject scratchMemBlock, int scratchMemBlockSize, boolean controlSimulation)static PxScenewrapPointer(long address)-
Methods inherited from class physx.NativeObject
equals, getAddress, hashCode
-
-
-
-
Method Detail
-
wrapPointer
public static PxScene wrapPointer(long address)
-
addActor
public void addActor(PxActor actor, PxBVHStructure bvhStructure)
- Parameters:
actor- WebIDL type:PxActor[Ref]bvhStructure- WebIDL type:PxBVHStructure[Const]
-
removeActor
public void removeActor(PxActor actor, boolean wakeOnLostTouch)
- Parameters:
actor- WebIDL type:PxActor[Ref]wakeOnLostTouch- WebIDL type: boolean
-
simulate
public void simulate(float elapsedTime)
- Parameters:
elapsedTime- WebIDL type: float
-
simulate
public void simulate(float elapsedTime, PxBaseTask completionTask)- Parameters:
elapsedTime- WebIDL type: floatcompletionTask- WebIDL type:PxBaseTask
-
simulate
public void simulate(float elapsedTime, PxBaseTask completionTask, NativeObject scratchMemBlock)- Parameters:
elapsedTime- WebIDL type: floatcompletionTask- WebIDL type:PxBaseTaskscratchMemBlock- WebIDL type: any
-
simulate
public void simulate(float elapsedTime, PxBaseTask completionTask, NativeObject scratchMemBlock, int scratchMemBlockSize)- Parameters:
elapsedTime- WebIDL type: floatcompletionTask- WebIDL type:PxBaseTaskscratchMemBlock- WebIDL type: anyscratchMemBlockSize- WebIDL type: unsigned long
-
simulate
public void simulate(float elapsedTime, PxBaseTask completionTask, NativeObject scratchMemBlock, int scratchMemBlockSize, boolean controlSimulation)- Parameters:
elapsedTime- WebIDL type: floatcompletionTask- WebIDL type:PxBaseTaskscratchMemBlock- WebIDL type: anyscratchMemBlockSize- WebIDL type: unsigned longcontrolSimulation- 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
-
createBatchQuery
public PxBatchQuery createBatchQuery(PxBatchQueryDesc desc)
- Parameters:
desc- WebIDL type:PxBatchQueryDesc[Const, Ref]- Returns:
- WebIDL type:
PxBatchQuery
-
release
public void release()
-
setFlag
public void setFlag(int flag, boolean value)- Parameters:
flag- WebIDL type:PxSceneFlagEnum[enum]value- WebIDL type: boolean
-
getFlags
public PxSceneFlags getFlags()
- Returns:
- WebIDL type:
PxSceneFlags[Value]
-
getTimestamp
public int getTimestamp()
- Returns:
- WebIDL type: unsigned long
-
-