struct CrShader::Compute::ForceAttractor

Overview

Point, Directional, Vortex, or Spring force attractor specification

Defined in:

crshader/compute/particle_simulation_core.cr

Constructors

Instance Method Summary

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) #

Instance Method Detail

def falloff : Float32 #

def falloff=(falloff : Float32) #

def radius : Float32 #

def radius=(radius : Float32) #

def strength : Float32 #

def strength=(strength : Float32) #

def type : AttractorType #

def type=(type : AttractorType) #

def x : Float32 #

def x=(x : Float32) #

def y : Float32 #

def y=(y : Float32) #

def z : Float32 #

def z=(z : Float32) #