How to make NewtonBodies in slider joints, collide?

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

How to make NewtonBodies in slider joints, collide?

Postby pr0t0z » Fri Jul 20, 2012 3:30 pm

The problem is pretty much described in the subject.
I have a slider joint, 2 bodies and i need them to stop moving when the base piece collides with the moving piece body.

I've made a quick search but didn't find the answer to my problem. The only solution that comes to my mind right now is to set a usercallback function to restrain motion upon meeting a certain condition, but isn't there a built in option to make the joint obey body collision physics?

Cheers
Carlos
pr0t0z
 
Posts: 15
Joined: Wed May 30, 2012 11:57 am

Re: How to make NewtonBodies in slider joints, collide?

Postby Julio Jerez » Fri Jul 20, 2012 5:44 pm

void NewtonBodySetJointRecursiveCollision(const NewtonBody* const bodyPtr, unsigned state)
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron