I have a setup where I use a raycast to grab and attach rigidbody objects to the player using a ConfigurableJoint. This part works. The problem now is getting the configurable joint angular limits to work properly with objects that have been joined from whatever orientation they started with.
I'm trying to set the axis and angularlimits so that the object can swing below the player in any direciton and at its maximum can swing up to the players level. IE : As if the player were in the middle of a sphere and the top half was removed, with only the bottom half as possible swinging space.
This previously worked if the object to be attached started out directly beneath the player,
Axis = (0,1,0)
secondary axis = (0,0,1)
XYZ Motion locked
AngularYLimit = 90
AngularZLimit = 90
However, when I attach something from a raycast from in front of the player, the object doesn't seem to use the limits the same way and behaves rather erratically.
asked Jun 06 '11 at 04:19 AM