class

Flock::Collision::Physics3D

Inherits Flock::Resource < Reference < Object

Global 3D physics configuration + reusable broadphase. Inserted by Physics3DPlugin.

Constructors

new(gravity : Flock::Vec3 = Flock::Vec3.new(0, -9.81, 0), velocity_iterations : Int32 = 8, cell : Number = 1.0, allow_sleeping : Bool = true, sleep_linear_threshold : Float32 = 0.0025_f32, sleep_angular_threshold : Float32 = 0.0025_f32, sleep_time : Float32 = 0.5_f32, broadphase : Symbol = :hash)
Source

Instance methods

add_joint(j : Joint3D) : Nil
Source
allow_sleeping
Source
allow_sleeping=(allow_sleeping : Bool)
Source
broadphase
Source
broadphase=(broadphase : Broadphase3D)
Source
contact_cache
Source
contact_cache=(contact_cache : Hash(UInt64, Array(CachedImpulse3D)))
Source
gravity
Source
gravity=(gravity : Flock::Vec3)
Source
joints
Source
joints=(joints : Array(Joint3D))
Source
sleep_angular_threshold
Source
sleep_angular_threshold=(sleep_angular_threshold : Float32)
Source
sleep_linear_threshold
Source
sleep_linear_threshold=(sleep_linear_threshold : Float32)
Source
sleep_time
Source
sleep_time=(sleep_time : Float32)
Source
velocity_iterations
Source
velocity_iterations=(velocity_iterations : Int32)
Source