Jump to content

Recommended Posts

Posted

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?

Posted

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.

 

Posted

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.

Posted

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?

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...