Flock::Collision::Physics3D
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)
SourceInstance methods
add_joint(j : Joint3D) : Nil
Sourceallow_sleeping
Sourcebroadphase
Sourcebroadphase=(broadphase : Broadphase3D)
Sourcecontact_cache
Sourcegravity
Sourcegravity=(gravity : Flock::Vec3)
Sourcejoints
Sourcesleep_angular_threshold
Sourcesleep_linear_threshold
Sourcesleep_time
Sourcevelocity_iterations
Source