class Engine::Body
- Engine::Body
- Reference
- Object
Direct Known Subclasses
Defined in:
engine/physics.crConstructors
Class Method Summary
Macro Summary
- can_collide(klass, &)
- collide(klass)
- detect_collide(klass, &)
- detect_pass(klass, &)
- material(density, friction, elasticity, default_radius = 0)
- pass(klass)
Instance Method Summary
- #add_box(box)
- #add_circle(offset, r)
- #add_line(p1, p2)
- #add_poly(poly : Polygon)
- #angle : Float64
- #angle=(angle : Float64)
- #apply_control(target, max_speed, max_force)
- #apply_force(force, offset, torque)
- #finalize
- #free
- #omega : Float64
- #omega=(omega : Float64)
- #owner
- #pos
- #process
- #to_unsafe
- #update_coords(mode : LibEngine::PhysicCoordinatesMode = LibEngine::PhysicCoordinatesMode::ReadWrite)
- #vx : Float64
- #vx=(vx : Float64)
- #vy : Float64
- #vy=(vy : Float64)
- #warp_to(*, x = nil, y = nil, vx = nil, vy = nil, angle = nil, omega = nil)
- #x : Float64
- #x=(x : Float64)
- #y : Float64
- #y=(y : Float64)
Constructor Detail
def self.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)
#
Class Method Detail
Macro Detail
Instance Method Detail
def update_coords(mode : LibEngine::PhysicCoordinatesMode = LibEngine::PhysicCoordinatesMode::ReadWrite)
#