java.lang.Object
physx.NativeObject
physx.physics.PxSceneDesc
-
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
ConstructorsModifierConstructorDescriptionprotectedprotectedPxSceneDesc(long address) PxSceneDesc(PxTolerancesScale scale) -
Method Summary
Modifier and TypeMethodDescriptionstatic PxSceneDescarrayGet(long baseAddress, int index) static PxSceneDesccreateAt(long address, PxTolerancesScale scale) static <T> PxSceneDesccreateAt(T allocator, NativeObject.Allocator<T> allocate, PxTolerancesScale scale) voiddestroy()floatintfloatfloatintintintintintgetFlags()floatfloatintintintfloatintintintintintfloatbooleanisValid()voidsetBounceThresholdVelocity(float value) voidvoidsetCcdMaxPasses(int value) voidsetCcdMaxSeparation(float value) voidsetCcdThreshold(float value) voidsetContactPairSlabSize(int value) voidsetContactReportStreamBufferSize(int value) voidsetCpuDispatcher(PxCpuDispatcher value) voidvoidvoidsetDynamicNbObjectsPerNode(int value) voidvoidsetDynamicTreeRebuildRateHint(int value) voidvoidvoidsetFilterShaderData(NativeObject value) voidsetFilterShaderDataSize(int value) voidsetFlags(PxSceneFlags value) voidsetFrictionCorrelationDistance(float value) voidsetFrictionOffsetThreshold(float value) voidvoidsetGpuComputeVersion(int value) voidvoidsetGpuMaxNumPartitions(int value) voidsetGpuMaxNumStaticPartitions(int value) voidsetGravity(PxVec3 value) voidvoidsetLimits(PxSceneLimits value) voidsetMaxBiasCoefficient(float value) voidsetMaxNbContactDataBlocks(int value) voidsetNbContactDataBlocks(int value) voidsetSanityBounds(PxBounds3 value) voidvoidvoidsetSolverArticulationBatchSize(int value) voidsetSolverBatchSize(int value) voidsetSolverType(PxSolverTypeEnum value) voidvoidvoidsetStaticNbObjectsPerNode(int value) voidvoidsetToDefault(PxTolerancesScale scale) voidsetUserData(NativeObject value) voidsetWakeCounterResetValue(float value) static PxSceneDescwrapPointer(long address) Methods 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
-
PxSceneDesc
protected PxSceneDesc() -
PxSceneDesc
protected PxSceneDesc(long address) -
PxSceneDesc
- Parameters:
scale- WebIDL type:PxTolerancesScale[Const, Ref]
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.scale- WebIDL type:PxTolerancesScale[Const, Ref]- Returns:
- Stack allocated object of PxSceneDesc
-
createAt
public static <T> PxSceneDesc createAt(T allocator, NativeObject.Allocator<T> allocate, PxTolerancesScale scale) - Type Parameters:
T- Allocator class, e.g. LWJGL's MemoryStack.- Parameters:
allocator- Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.allocate- Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.scale- WebIDL type:PxTolerancesScale[Const, Ref]- Returns:
- Stack allocated object of PxSceneDesc
-
destroy
public void destroy() -
getGravity
- Returns:
- WebIDL type:
PxVec3[Value]
-
setGravity
- Parameters:
value- WebIDL type:PxVec3[Value]
-
getSimulationEventCallback
- Returns:
- WebIDL type:
PxSimulationEventCallback
-
setSimulationEventCallback
- Parameters:
value- WebIDL type:PxSimulationEventCallback
-
getFilterShaderData
- Returns:
- WebIDL type: VoidPtr [Const]
-
setFilterShaderData
- Parameters:
value- WebIDL type: VoidPtr [Const]
-
getFilterShaderDataSize
public int getFilterShaderDataSize()- Returns:
- WebIDL type: unsigned long
-
setFilterShaderDataSize
public void setFilterShaderDataSize(int value) - Parameters:
value- WebIDL type: unsigned long
-
getFilterShader
- Returns:
- WebIDL type:
PxSimulationFilterShader[Value]
-
setFilterShader
- Parameters:
value- WebIDL type:PxSimulationFilterShader[Value]
-
getKineKineFilteringMode
- Returns:
- WebIDL type:
PxPairFilteringModeEnum[enum]
-
setKineKineFilteringMode
- Parameters:
value- WebIDL type:PxPairFilteringModeEnum[enum]
-
getStaticKineFilteringMode
- Returns:
- WebIDL type:
PxPairFilteringModeEnum[enum]
-
setStaticKineFilteringMode
- Parameters:
value- WebIDL type:PxPairFilteringModeEnum[enum]
-
getBroadPhaseType
- Returns:
- WebIDL type:
PxBroadPhaseTypeEnum[enum]
-
setBroadPhaseType
- Parameters:
value- WebIDL type:PxBroadPhaseTypeEnum[enum]
-
getLimits
- Returns:
- WebIDL type:
PxSceneLimits[Value]
-
setLimits
- Parameters:
value- WebIDL type:PxSceneLimits[Value]
-
getFrictionType
- Returns:
- WebIDL type:
PxFrictionTypeEnum[enum]
-
setFrictionType
- Parameters:
value- WebIDL type:PxFrictionTypeEnum[enum]
-
getSolverType
- Returns:
- WebIDL type:
PxSolverTypeEnum[enum]
-
setSolverType
- Parameters:
value- WebIDL type:PxSolverTypeEnum[enum]
-
getBounceThresholdVelocity
public float getBounceThresholdVelocity()- Returns:
- WebIDL type: float
-
setBounceThresholdVelocity
public void setBounceThresholdVelocity(float value) - Parameters:
value- WebIDL type: float
-
getFrictionOffsetThreshold
public float getFrictionOffsetThreshold()- Returns:
- WebIDL type: float
-
setFrictionOffsetThreshold
public void setFrictionOffsetThreshold(float value) - Parameters:
value- WebIDL type: float
-
getFrictionCorrelationDistance
public float getFrictionCorrelationDistance()- Returns:
- WebIDL type: float
-
setFrictionCorrelationDistance
public void setFrictionCorrelationDistance(float value) - Parameters:
value- WebIDL type: float
-
getFlags
- Returns:
- WebIDL type:
PxSceneFlags[Value]
-
setFlags
- Parameters:
value- WebIDL type:PxSceneFlags[Value]
-
getCpuDispatcher
- Returns:
- WebIDL type:
PxCpuDispatcher
-
setCpuDispatcher
- Parameters:
value- WebIDL type:PxCpuDispatcher
-
getCudaContextManager
- Returns:
- WebIDL type:
PxCudaContextManager[Platforms=windows;linux]
-
setCudaContextManager
- Parameters:
value- WebIDL type:PxCudaContextManager[Platforms=windows;linux]
-
getUserData
- Returns:
- WebIDL type: VoidPtr
-
setUserData
- Parameters:
value- WebIDL type: VoidPtr
-
getSolverBatchSize
public int getSolverBatchSize()- Returns:
- WebIDL type: unsigned long
-
setSolverBatchSize
public void setSolverBatchSize(int value) - Parameters:
value- WebIDL type: unsigned long
-
getSolverArticulationBatchSize
public int getSolverArticulationBatchSize()- Returns:
- WebIDL type: unsigned long
-
setSolverArticulationBatchSize
public void setSolverArticulationBatchSize(int value) - Parameters:
value- WebIDL type: unsigned long
-
getNbContactDataBlocks
public int getNbContactDataBlocks()- Returns:
- WebIDL type: unsigned long
-
setNbContactDataBlocks
public void setNbContactDataBlocks(int value) - Parameters:
value- WebIDL type: unsigned long
-
getMaxNbContactDataBlocks
public int getMaxNbContactDataBlocks()- Returns:
- WebIDL type: unsigned long
-
setMaxNbContactDataBlocks
public void setMaxNbContactDataBlocks(int value) - Parameters:
value- WebIDL type: unsigned long
-
getMaxBiasCoefficient
public float getMaxBiasCoefficient()- Returns:
- WebIDL type: float
-
setMaxBiasCoefficient
public void setMaxBiasCoefficient(float value) - Parameters:
value- WebIDL type: float
-
getContactReportStreamBufferSize
public int getContactReportStreamBufferSize()- Returns:
- WebIDL type: unsigned long
-
setContactReportStreamBufferSize
public void setContactReportStreamBufferSize(int value) - Parameters:
value- WebIDL type: unsigned long
-
getCcdMaxPasses
public int getCcdMaxPasses()- Returns:
- WebIDL type: unsigned long
-
setCcdMaxPasses
public void setCcdMaxPasses(int value) - Parameters:
value- WebIDL type: unsigned long
-
getCcdThreshold
public float getCcdThreshold()- Returns:
- WebIDL type: float
-
setCcdThreshold
public void setCcdThreshold(float value) - Parameters:
value- WebIDL type: float
-
getCcdMaxSeparation
public float getCcdMaxSeparation()- Returns:
- WebIDL type: float
-
setCcdMaxSeparation
public void setCcdMaxSeparation(float value) - Parameters:
value- WebIDL type: float
-
getWakeCounterResetValue
public float getWakeCounterResetValue()- Returns:
- WebIDL type: float
-
setWakeCounterResetValue
public void setWakeCounterResetValue(float value) - Parameters:
value- WebIDL type: float
-
getSanityBounds
- Returns:
- WebIDL type:
PxBounds3[Value]
-
setSanityBounds
- Parameters:
value- WebIDL type:PxBounds3[Value]
-
getGpuDynamicsConfig
- Returns:
- WebIDL type:
PxgDynamicsMemoryConfig[Platforms=windows;linux, Value]
-
setGpuDynamicsConfig
- Parameters:
value- WebIDL type:PxgDynamicsMemoryConfig[Platforms=windows;linux, Value]
-
getGpuMaxNumPartitions
public int getGpuMaxNumPartitions()- Returns:
- WebIDL type: unsigned long
-
setGpuMaxNumPartitions
public void setGpuMaxNumPartitions(int value) - Parameters:
value- WebIDL type: unsigned long
-
getGpuMaxNumStaticPartitions
public int getGpuMaxNumStaticPartitions()- Returns:
- WebIDL type: unsigned long
-
setGpuMaxNumStaticPartitions
public void setGpuMaxNumStaticPartitions(int value) - Parameters:
value- WebIDL type: unsigned long
-
getGpuComputeVersion
public int getGpuComputeVersion()- Returns:
- WebIDL type: unsigned long
-
setGpuComputeVersion
public void setGpuComputeVersion(int value) - Parameters:
value- WebIDL type: unsigned long
-
getContactPairSlabSize
public int getContactPairSlabSize()- Returns:
- WebIDL type: unsigned long
-
setContactPairSlabSize
public void setContactPairSlabSize(int value) - Parameters:
value- WebIDL type: unsigned long
-
getStaticStructure
- Returns:
- WebIDL type:
PxPruningStructureTypeEnum[enum]
-
setStaticStructure
- Parameters:
value- WebIDL type:PxPruningStructureTypeEnum[enum]
-
getDynamicStructure
- Returns:
- WebIDL type:
PxPruningStructureTypeEnum[enum]
-
setDynamicStructure
- Parameters:
value- WebIDL type:PxPruningStructureTypeEnum[enum]
-
getDynamicTreeRebuildRateHint
public int getDynamicTreeRebuildRateHint()- Returns:
- WebIDL type: unsigned long
-
setDynamicTreeRebuildRateHint
public void setDynamicTreeRebuildRateHint(int value) - Parameters:
value- WebIDL type: unsigned long
-
getDynamicTreeSecondaryPruner
- Returns:
- WebIDL type:
PxDynamicTreeSecondaryPrunerEnum[enum]
-
setDynamicTreeSecondaryPruner
- Parameters:
value- WebIDL type:PxDynamicTreeSecondaryPrunerEnum[enum]
-
getStaticBVHBuildStrategy
- Returns:
- WebIDL type:
PxBVHBuildStrategyEnum[enum]
-
setStaticBVHBuildStrategy
- Parameters:
value- WebIDL type:PxBVHBuildStrategyEnum[enum]
-
getDynamicBVHBuildStrategy
- Returns:
- WebIDL type:
PxBVHBuildStrategyEnum[enum]
-
setDynamicBVHBuildStrategy
- Parameters:
value- WebIDL type:PxBVHBuildStrategyEnum[enum]
-
getStaticNbObjectsPerNode
public int getStaticNbObjectsPerNode()- Returns:
- WebIDL type: unsigned long
-
setStaticNbObjectsPerNode
public void setStaticNbObjectsPerNode(int value) - Parameters:
value- WebIDL type: unsigned long
-
getDynamicNbObjectsPerNode
public int getDynamicNbObjectsPerNode()- Returns:
- WebIDL type: unsigned long
-
setDynamicNbObjectsPerNode
public void setDynamicNbObjectsPerNode(int value) - Parameters:
value- WebIDL type: unsigned long
-
getSceneQueryUpdateMode
- Returns:
- WebIDL type:
PxSceneQueryUpdateModeEnum[enum]
-
setSceneQueryUpdateMode
- Parameters:
value- WebIDL type:PxSceneQueryUpdateModeEnum[enum]
-
setToDefault
- Parameters:
scale- WebIDL type:PxTolerancesScale[Const, Ref]
-
isValid
public boolean isValid()- Returns:
- WebIDL type: boolean
-