struct
CrShader::Compute::ForceAttractor
- CrShader::Compute::ForceAttractor
- Struct
- Value
- Object
Overview
Point, Directional, Vortex, or Spring force attractor specification
Defined in:
crshader/compute/particle_simulation_core.crConstructors
Instance Method Summary
- #falloff : Float32
- #falloff=(falloff : Float32)
- #radius : Float32
- #radius=(radius : Float32)
- #strength : Float32
- #strength=(strength : Float32)
- #type : AttractorType
- #type=(type : AttractorType)
- #x : Float32
- #x=(x : Float32)
- #y : Float32
- #y=(y : Float32)
- #z : Float32
- #z=(z : Float32)
Constructor Detail
def self.new(type : AttractorType = AttractorType::Point, x : Float32 = 0.0_f32, y : Float32 = 0.0_f32, z : Float32 = 0.0_f32, strength : Float32 = 10.0_f32, radius : Float32 = 25.0_f32, falloff : Float32 = 2.0_f32)
#