Jump to content

Problems creating Joints


Rekindled Phoenix
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...