Re: [osg-users] Coupling luabind with OSG + Bullet

2008-11-12 Thread Dusten Sobotta
I've used a temporary variable in the global scope as you suggested, and it still crashes my engine. Not sure how else to go about this.. On Wed, Nov 12, 2008 at 3:27 AM, Gerwin de Haan <[EMAIL PROTECTED]>wrote: > I don't use Luabind either but osgswig with Python instead. I sometimes > experien

Re: [osg-users] Coupling luabind with OSG + Bullet

2008-11-12 Thread Gerwin de Haan
I don't use Luabind either but osgswig with Python instead. I sometimes experience similar surprising effects when passing non-declared variables as function arguments. In that case, the reason for this is often that the scripting language garbage collector deletes the Vec3f after returning from th

[osg-users] Coupling luabind with OSG + Bullet

2008-11-11 Thread Dusten Sobotta
Hello, I've been working on an engine that combines sdl, osg, bullet, open al, and now lua for roughly 6 weeks. Static and dynamic entity creation works well on the fly if handled with C++ code, however if I attempt to off-load this logic to lua, I run into problems. Below is an example of code