From 6cb616689535c340b0b4f441c12ef8eb1ee42cb0 Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 22 Dec 2018 10:58:06 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9vector=E8=AE=BF=E9=97=AE=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/graphics/je_lua_particle_system.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/libjin-lua/modules/graphics/je_lua_particle_system.cpp') diff --git a/src/libjin-lua/modules/graphics/je_lua_particle_system.cpp b/src/libjin-lua/modules/graphics/je_lua_particle_system.cpp index 0c42209..70511f7 100644 --- a/src/libjin-lua/modules/graphics/je_lua_particle_system.cpp +++ b/src/libjin-lua/modules/graphics/je_lua_particle_system.cpp @@ -147,10 +147,10 @@ namespace JinEngine return 1; } Vector2 floor, ceil; - floor.x = luax_rawgetnumber(L, 2, 1); - floor.y = luax_rawgetnumber(L, 2, 2); - ceil.x = luax_rawgetnumber(L, 3, 1); - ceil.y = luax_rawgetnumber(L, 3, 2); + floor.x() = luax_rawgetnumber(L, 2, 1); + floor.y() = luax_rawgetnumber(L, 2, 2); + ceil.x() = luax_rawgetnumber(L, 3, 1); + ceil.y() = luax_rawgetnumber(L, 3, 2); ps->setEmitPosition(floor, ceil); } else if (luax_gettop(L) >= 2) @@ -161,8 +161,8 @@ namespace JinEngine return 1; } Vector2 pos; - pos.x = luax_rawgetnumber(L, 2, 1); - pos.y = luax_rawgetnumber(L, 2, 2); + pos.x() = luax_rawgetnumber(L, 2, 1); + pos.y() = luax_rawgetnumber(L, 2, 2); ps->setEmitPosition(pos); } return 0; @@ -194,8 +194,8 @@ namespace JinEngine return 1; } Vector2 ac; - ac.x = luax_rawgetnumber(L, 2, 1); - ac.y = luax_rawgetnumber(L, 2, 2); + ac.x() = luax_rawgetnumber(L, 2, 1); + ac.y() = luax_rawgetnumber(L, 2, 2); ps->setParticleLinearAccelaration(ac); return 0; } -- cgit v1.1-26-g67d0