Rick Posted July 21, 2013 Share Posted July 21, 2013 http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/physicsdriver/physicsdrivergetcurrent-r744 self.physicsdriver = NewtonDynamicsPhysicsDriver:Create() This line crashes saying Create() is a nil value when done in Lua. Can we get this exposed please. Link to comment Share on other sites More sharing options...
Josh Posted July 21, 2013 Share Posted July 21, 2013 Will do. FYI, you never need to call this unless you are creating your own physics module. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Rick Posted July 21, 2013 Author Share Posted July 21, 2013 So maybe there is another bug because PhysicsDriver:GetCurrent() is returning nil in Lua and I need that to assign custom collisions. Looks like it works in C++ though. I was just using PhysicsDriver:Create() because I thought maybe that would help PhysicsDriver:GetCurrent() to return something the current physics object so I can set custom collisions. Link to comment Share on other sites More sharing options...
Rick Posted July 21, 2013 Author Share Posted July 21, 2013 Found another situation where I need custom collisions in Lua. Don't want to give too many details as it's for the game comp but this is increasingly becoming more important in Lua for me. Link to comment Share on other sites More sharing options...
YouGroove Posted July 22, 2013 Share Posted July 22, 2013 why not staying in full Newton 3 ? Im' not sure hijacking collision system to be good ? Stop toying and make games Link to comment Share on other sites More sharing options...
Recommended Posts