- Home /
Instantiated character joint behaves differently from placed in scene manually
I am working on a VR game and I need a body connected to my head. I took many hours setting up a character joint and rigidbodies so that your body behaves very nicely with your head movements and created a prefab from it, everything is great there!
HOWEVER, when I instantiate this prefab from code at runtime the body doesn't do anything, it doesn't follow the head etc.. etc.. It behaves like it's not attached, even though the character joint clearly shows it is attached to the head.
This is not an issue if I put the prefab in the scene from the editor before running it.
Please help!
What's the problem with having it in the scene before running it?
It needs to be done at runtime, players switch in and out of the H$$anonymous$$D (party game) and each one has a different setup etc... And not all the players I will be instantiating will actually be controlled, some will be NPS.
No idea. Could be a known issue for all I know. Could also be a simple fix. Just my 2 cent workaround in case you don't figure it out. :)
Your answer
Follow this Question
Related Questions
How to make Character Joint rotate towards a rest position? 0 Answers
Convert imported model to prefab 1 Answer
Change one intance, change all the prefab - Not found the correct answer in other threads 1 Answer
Making multiple instances of a prefab,Instantiating multiple instances of a prefab 1 Answer
New prefab system doesn't allow buttons to work well. 0 Answers