Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:
4.18k
stars
515
forks
source link
Cannot directly bind b2Vec2 to a table entry #1596
Open
linsyking opened 5 months ago
Hi, I met with a problem when using sol with box2d.
Box2d has a class called b2Vec2, and I want to set an entry of a table to a b2Vec2.
I tried:
The compiler then complains an error:
However, if I change the code to:
Then it works.
I wonder why this happens and can it be fixed? Thanks!