Hi everybody. Here i found a terrible problem. I made a custom elevator with some simple 3d objects. Parented all the retail objects under the *Elevator gameobject and made it a single prefeb. Then add a simple animation and some simple codes that moved it. Then i scripted my character with simple codes. Whenever my character is on the elevator and press the trigger, the elevator start moving. BUT THE PROBLEM IS, IT MOVES WITH VIBRATION. I have added rigidbody to my player. Whenever i deselect the rigidbody, the Elevator moves smooth. But as soon as i reselect rigidbody, the Elevator again start vibrating. I want to run my elevator even if my character has rigidbody attached with it. How to fix this???
Rigidbody is on the player. Therefore gravity is acting on the player. The player is acting on the elevator. Therefore gravity is acting (albeit intermittently) on the elevator by way of the player.
When you press the trigger, first turn off the rigidbody, then start the elevator movement. Turn the rigidbody on after the elevator has stopped moving and before the user can regain control of the player.