XII Release 0.1.0
Loading...
Searching...
No Matches
xiiParticleSimulationSpace Struct Reference

Simulation space for particle data. More...

#include <ParticleSystem.h>

Inheritance diagram for xiiParticleSimulationSpace:
[legend]

Public Types

enum  Enum : StorageType {
  World = 0U , Local , View , ENUM_COUNT ,
  Default = World
}
using StorageType = xiiUInt8

Detailed Description

Simulation space for particle data.

Member Enumeration Documentation

◆ Enum

Enumerator
World 

Particle positions and velocities are in world space, and the system's local transform is ignored for simulation. This is the most common choice for general-purpose particle systems.

Local 

Particle positions and velocities are in the local space of the system's transform, which is used as the simulation origin. This allows for easy movement and rotation of the entire system by modifying its transform, but may require special handling for emitter shapes and rendering to ensure correct orientation and scaling.

View 

Particle positions and velocities are in view space, which is defined by the camera's position and orientation. This can be useful for certain screen-space effects or when you want particles to always face the camera, but may require special handling for emitter shapes and rendering to ensure correct orientation and scaling.


The documentation for this struct was generated from the following file:
  • /home/runner/work/XII/XII/Source/Engine/GraphicsCore/Particles/ParticleSystem.h