Jump to content

Recommended Posts

Posted

Test:

local world = CreateWorld()

local box = CreateBox(world)
local box2 = CreateBox(world);

box:SetPosition(2,0,0)
box:Point(box2, 2, 1, 0)

result:

sol: no matching function call takes this number of arguments and the specified types

Let's build cool stuff and have fun. :)

  • Solution
Posted

I correct the function definition:

"Point", sol::overload
(
  [](Entity& e, shared_ptr<Entity> target) { e.Point(target); },
  [](Entity& e, shared_ptr<Entity> target, int a) { e.Point(target, a); },
  [](Entity& e, shared_ptr<Entity> target, int a, float r) { e.Point(target, a, r); },
  [](Entity& e, shared_ptr<Entity> target, int a, float r, float z) { e.Point(target, a, r, z); },
  [](Entity& e, Vec3& target) { e.Point(target); },
  [](Entity& e, Vec3& target, int a) { e.Point(target, a); },
  [](Entity& e, Vec3& target, int a, float r) { e.Point(target, a, r); },
  [](Entity& e, Vec3& target, int a, float r, float z) { e.Point(target, a, r, z); },
  [](Entity& e, float x, float y, float z) { e.Point(x,y,z); },
  [](Entity& e, float x, float y, float z, int a) { e.Point(x, y, z, a); },
  [](Entity& e, float x, float y, float z, int a, float r) { e.Point(x, y, z, a, r); },
  [](Entity& e, float x, float y, float z, int a, float r, float roll) { e.Point(x, y, z, a, r, roll); }
),

 

  • Thanks 1

Let's build cool stuff and have fun. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...