Double LineJoint

29 views
Skip to first unread message

R Doi

unread,
Aug 30, 2016, 12:54:15 PM8/30/16
to Nape Physics
I feel pretty stupid, but I admit I am completely newbie in physics mathematics, so I need help to get a kind of "double" LineJoint constraint (AS3).

So what I basically need is a constraint that keep two parallel bodys sliding in each other, something like a ice cube over a table. 

I think I can implement this using a pair of LineJoints and update each fixed anchor each step, but I believe it is better by properly extend the UserConstraint class, right?

So could anyone around that have experience working with constraints in Nape help me with this?

Any help appreciated.



T1m_

unread,
Sep 1, 2016, 7:48:13 AM9/1/16
to Nape Physics
How about to disallow rotation for one of body (or for both) ?
body1.allowRotation = false;


Reply all
Reply to author
Forward
0 new messages