x


ConfigurableJoint AngularLimits problem?

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.

Any ideas?

more ▼

asked Jun 06 '11 at 04:19 AM

Creamzsoda gravatar image

Creamzsoda
46 7 8 10

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x63
x1

asked: Jun 06 '11 at 04:19 AM

Seen: 467 times

Last Updated: Jun 06 '11 at 04:19 AM