User joint

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

User joint

Postby Leadwerks » Mon Nov 10, 2008 6:56 pm

I am trying to make a fixed joint.

Here I am using the user joint function:
joint.NewtonJoint=NewtonConstraintCreateUserJoint(parent.world.NewtonWorld,maxdof:Int,NewtonUserBilateralCallBack,NewtonUserBilateralGetInfoCallBack,child.NewtonBody,parent.NewtonBody)

Here are my callbacks:
Function NewtonUserBilateralCallBack(userJoint:Byte Ptr,timestep:Float,threadIndex:Int)

EndFunction

Function NewtonUserBilateralGetInfoCallBack(userJoint:Byte Ptr,info:Byte Ptr)

EndFunction

I have no idea how user joints work. Can someone with more experience explain how I use the callbacks to make a fixed joint?
User avatar
Leadwerks
 
Posts: 569
Joined: Fri Oct 27, 2006 2:54 pm

Re: User joint

Postby JernejL » Tue Nov 11, 2008 5:14 am

I think julio posted a while ago a example which did just that, i bookmarked it at home, i can post the link here when i finish work.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1578
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: User joint

Postby JernejL » Tue Nov 11, 2008 5:16 am

Nevermind i found it in faq:

viewtopic.php?f=15&t=4056
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1578
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 20 guests