PhysicsWorld PhysicsWorld { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The PhysicsWorld property of the SceneParticles class is used to specify the physics world that particle collisions will utilize to perform traces. This allows for accurate collision detection and response within the particle system, ensuring that particles interact with the environment as expected.

Usage

To use the PhysicsWorld property, you need to have an instance of the SceneParticles class. You can then set or get the PhysicsWorld to define or retrieve the physics context in which the particles will operate.

Example

// Example of setting the PhysicsWorld for a SceneParticles instance
SceneParticles particleSystem = new SceneParticles();
PhysicsWorld customPhysicsWorld = new PhysicsWorld();

// Assign the custom physics world to the particle system
particleSystem.PhysicsWorld = customPhysicsWorld;

// Now the particle system will use the specified physics world for collision traces