Rekindled Phoenix Posted May 14, 2010 Share Posted May 14, 2010 I was wondering if anyone had a preferred method or strategy when creating rope. Does anyone have example code (or even pseudo code) that would work with the C# Headers? While I'm working with Joints, has anyone managed to create a simple soft-body or joint-based cloth? Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted May 16, 2010 Share Posted May 16, 2010 I have spent many hours with joints....but no luck. Maybe you can find something that helps inside these Lua scripts. Ofcourse it's not C# but then again you might get an idea where to start . The project contains 7 attempts. Quote Link to comment Share on other sites More sharing options...
Rekindled Phoenix Posted May 17, 2010 Author Share Posted May 17, 2010 Thank you Aggror for your help I have spent many hours with joints....but no luck. Maybe you can find something that helps inside these Lua scripts. Ofcourse it's not C# but then again you might get an idea where to start . The project contains 7 attempts. Do you know if Josh has had any success with either Lua Scripts or C-based code? I'd prefer the second. Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted May 17, 2010 Share Posted May 17, 2010 Well, in the old forum, someone managed to do so. But there is no code supplied that explains how joints work. http://forum.leadwerks.com/viewtopic.php?f=32&t=3085&hilit=rope Quote Link to comment Share on other sites More sharing options...
Rekindled Phoenix Posted May 20, 2010 Author Share Posted May 20, 2010 When I call Core.CreateJointBall() I get an access violation exception. Here's part of the wrapper Public Shared Function CreateBall(ByVal parent As Entity, ByVal child As Entity, ByVal position As Vector3) As Joint Return New Joint(Core.CreateJointBall(parent.Pointer, child.Pointer, position.ToFloatArray())) End Function Part of the core class <DllImport(EngineDll, EntryPoint := "CreateJointBall", CallingConvention := CallingConvention.StdCall)> _ Public Function CreateJointBall(ByVal _parent As IntPtr, ByVal _child As IntPtr, ByVal _pos As Single()) As IntPtr End Function Can anyone else create joints? Quote Link to comment Share on other sites More sharing options...
ZioRed Posted May 20, 2010 Share Posted May 20, 2010 Fixed in 1.32.3, please update your wrapper from SVN or download the new DLL. Quote ?? FRANCESCO CROCETTI ?? http://skaredcreations.com Link to comment Share on other sites More sharing options...
Rekindled Phoenix Posted May 22, 2010 Author Share Posted May 22, 2010 Oh wonderful! I'm so happy we are source control-ing our header files with SVN. LE Community, you are awesome. I will try the headers tonight! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.