class Engine::StaticBody

Defined in:

engine/physics.cr

Class Method Summary

Instance Method Summary

Instance methods inherited from class Engine::Body

add_box(box) add_box, add_circle(offset, r) add_circle, add_line(p1, p2) add_line, add_poly(poly : Polygon) add_poly, angle : Float64 angle, angle=(angle : Float64) angle=, apply_control(target, max_speed, max_force) apply_control, apply_force(force, offset, torque) apply_force, finalize finalize, free free, omega : Float64 omega, omega=(omega : Float64) omega=, owner owner, pos pos, process process, to_unsafe to_unsafe, update_coords(mode : LibEngine::PhysicCoordinatesMode = LibEngine::PhysicCoordinatesMode::ReadWrite) update_coords, vx : Float64 vx, vx=(vx : Float64) vx=, vy : Float64 vy, vy=(vy : Float64) vy=, warp_to(*, x = nil, y = nil, vx = nil, vy = nil, angle = nil, omega = nil) warp_to, x : Float64 x, x=(x : Float64) x=, y : Float64 y, y=(y : Float64) y=

Constructor methods inherited from class Engine::Body

new(x : Float64 = 0_f64, y : Float64 = 0_f64, vx : Float64 = 0_f64, vy : Float64 = 0_f64, angle : Float64 = 0_f64, omega : Float64 = 0_f64) new

Class methods inherited from class Engine::Body

body_type body_type

Class Method Detail

def self.body_type #

[View source]

Instance Method Detail

def process_all_collisions #