2016-03-16から1日間の記事一覧

物理エンジンを使う 6, polygon shape を使う

-- 物理エンジンを使う 6, polygon shape を使う -- Shape のサブクラスには、CircleShape, SegmentShape のほかにもうひとつ PolyShape がある。 require "physics" W, H = platform.window:width(), platform.window:height() ZERO = physics.Vect(0, 0) d…