class PhysicsConfigurator

Defined in:

utils/physics_systems.cr

Instance Method Summary

Instance Method Detail

def collide(mat : PhysicsMaterial, mat2 : PhysicsMaterial = @cur_material) #

[View source]
def collide_event(mat : PhysicsMaterial, mat2 : PhysicsMaterial, event_type, *, first_only = false) #

[View source]
def collide_event(mat : PhysicsMaterial, event_type, *, first_only = false) #

[View source]
def damping(f) #

[View source]
def gravity(x, y) #

[View source]
def maps : PhysicsCollisionMaps #

[View source]
def material(mat : PhysicsMaterial, *, density : Float64, friction : Float64, elasticity : Float64, def_radius : Float64 = 0.0, static : Bool = false, kinematic : Bool = false, non_rotating : Bool = false) #

[View source]
def material(mat : PhysicsMaterial, *, density : Float64, friction : Float64, elasticity : Float64, def_radius : Float64 = 0.0, static : Bool = false, kinematic : Bool = false, non_rotating : Bool = false, &) #

[View source]
def pass(mat : PhysicsMaterial, mat2 : PhysicsMaterial = @cur_material) #

[View source]
def pass_event(mat : PhysicsMaterial, mat2 : PhysicsMaterial, event_type, *, first_only = false) #

[View source]
def pass_event(mat : PhysicsMaterial, event_type, *, first_only = false) #

[View source]
def process(&) #

[View source]
def processable(mat : PhysicsMaterial, mat2 : PhysicsMaterial = @cur_material, &processor : CollisionProcessor) #

[View source]