- Home /
gameobject with rigidbody becomes unstable after timeline finishes
After the cutscene finishes playing I try to move around with the arrow keys my player gameobject topples over and shakes vigorously on the ground until it phases through the terrain and falls into the void. I suspect it has something to do with the rigidbody or attaching a gameobject (that doesn't have a rigidbody) to it (the player gameobject) and upon pressing the arrow keys the thing just freaks out and boom into the void, as seen in this gif:
Answer by Rickasheye · Jan 11, 2018 at 02:50 AM
heh, this looks like my windows mixed reality headset on steam vr
probally your prefab is so far out? is your prefab kinematic? does your prefab rigidbody have Use gravity enabled?
if you enable is kinematic probaly it would not topple over? idk or reload unity
Thank you for your answer. I tried to use $$anonymous$$inematic and this problem didn't occur. However, since the rigidbody is kinematic that also means it can phase through the house walls and other things. it seems though that when i put it on kinematic and then turn off kinematic the player seems stable but turning off and on in two lines doesn't work, and also gravity is on for the jumping. Do you have any other ideas?
have you got .addforce(blah blah blah); you probs need to add character controller and replace that with
<charactercontroller>.move(blah blah blah);