X-Git-Url: http://nitlanguage.org diff --git a/lib/gamnit/flat.nit b/lib/gamnit/flat.nit index f7f7c4a..cafac8a 100644 --- a/lib/gamnit/flat.nit +++ b/lib/gamnit/flat.nit @@ -42,6 +42,7 @@ import performance_analysis import gamnit import gamnit::cameras_cache +intrude import gamnit::cameras import gamnit::dynamic_resolution import gamnit::limit_fps import gamnit::camera_control @@ -633,6 +634,26 @@ redef class Point3d[N] end end +redef class OffsetPoint3d + redef fun x=(v) + do + if isset _x and v != x then needs_update + super + end + + redef fun y=(v) + do + if isset _y and v != y then needs_update + super + end + + redef fun z=(v) + do + if isset _z and v != z then needs_update + super + end +end + # Set of sprites sorting them into different `SpriteContext` private class SpriteSet super HashSet[Sprite]