Door Pivot Problems

SOLVED:
I have changed my tool handle setting from pivot to center!!! :roll_eyes::?

Hi Guys

Hope you can help as this was driving me crackers last night and eventually just gave up and started to work on something else.

I have a bunch of doors that are using pivots, simple enough. Now they animate using the pivot perfectly but when i click on the pivot and rotate it manually, the door rotates like i have clicked on the door mesh, not like it should with the pivot.

The pivot is on the right hand side of the door which is fine, but as soon as i drag the door mesh into it, the pivot rotate point moves to the center of the mesh.

I have it set up like this

DOOR A
–TRIGGER
----- PIVOT
--------DOOR MESH

It worked perfectly to begin with, and enabled me to setup all my doors, but now after going back to the project the pivots will not rotate correctly.

Can anyone enlighten me to what i may of done? It feels like a project setting i may of changed, but tbh, im grasping at straws as it could be anything

Thanks in advance for any help :slight_smile:

Have you used a hinge joint? You don’t need pivots if you have an animation (rigidbody, collider, center and mesh update with respective animation) but still - Pivot is child of DOOR A, pivot must be inheriting DOOR A’s rotation try making DOOR A pivot and let mesh be child along with the trigger,
DOOR A(pivot)
–TRIGGER
–DOOR MESH
if nothing yet…

Recommended : hinge joint(documentation) use anchor to set pivot and connected body to wall or whatever the door is attached to or just leave it null. Set angle rotation limits and use force and damping. http://unity3d.com/learn/tutorials/modules/beginner/physics/joints
(OR)
use your 3d app > edit mesh mode(look for the objects center Vector3 in the view, I use blender and to change pivots or center I do: edit mode>move the mesh to desired position) set pivot to right side and middle, know your animation and world axis of your app. Set Unity orientation to PIVOT(if you’re using this method only)

Ah brilliant Thanks.

Joints definitely seem to be the way to go.

It was more the fact it worked fine, then decided not to work. Was very frustrating as slowed down my workflow.

I had the same exact issue when setting up my pivot doors and this was the only solution I could find online so thank you!

Dont dig up a 4 year old thread next time please, and read the forum rules before posting to avoid mishaps like this.

watch me dig up a 10 year old thread