PxScene
- Last UpdatedFeb 21, 2024
- 2 minute read
The PxScene node represents a Physx physical system.
-
This system can contain a set of physical actors, such as static actors, dynamic actors, particle systems. Every physical actor must belong to an unique PxScene.
-
Even though generally, there is a unique PxScene for each graphic context, there is no limit to the number of PxScenes.
Platform support
This node is supported on XR-Windows platform only.
|
XR-WIN |
XR-P-WIN |
XR-P-IOS |
XR-P-AND |
XR-P-WASM |
|---|---|---|---|---|
|
Full support |
No support |
No support |
No support |
No support |
|
|
|
|
|
|
Managing PxScene
Use the Enabled parameter to skip the scene update and reduce the computational cost for it.
|
Value |
Description |
|---|---|
|
true |
The scene update is enabled. Each particle system is updated, or not, according to its Enabled state. |
|
false |
The scene update is disabled. The particle systems settings are ignored. |
|
Auto |
It observes the scene particle systems Enabled state. |
If all the particle systems are disabled, the system skips the scene update and automatically moves the pxScene Enabled setting to false. If any particle systems are enabled, the system enables the scene update and sets the pxScene Enabled setting to true.
Code example
This is a code example for the PxScene node.
<PxScene name="physx_test" createActors="true"/>
PxScene fields
These are the fields for PxScene node. Only the node-specific fields are indicated, not fields obtained by inheritance.
Field inheritance: NodeBase > PxScene
|
Fields |
Type |
Use |
Default value |
Description |
|---|---|---|---|---|
|
createActors |
sbool |
Optional |
true |
If set to true, the system scans the scene files to find meshes with physical settings, such as static or dynamic actors, and creates their physx counterparts. |
|
enabled |
senum |
Optional |
Auto |
Enables/disables physical scene update. Accepted values are true, false, and Auto. |