Prismatic Joint

Mar 26, 2011 at 10:12 PM

I'm trying to create a gavity gun that essentially will pull a body towards the end of the gun.

I've tried to achieve this using a gravity controller, but I think it may be better to use a prismatic joint. So now my idea is to cast a ray from the end of the gun and if we hit an object that can be manipulated by the gun, we then create a prismatic joint between the end of the gun and the object and pull the object towards the gun.

I'm having trouble however getting the prismatic joint to properly connect the two objects. What is the axis for? An is it possible to create this kind of joint between two moving bodies?

Jun 23, 2011 at 10:34 AM

A distance joint joint is more suited for this then a prismatic one I think .