- Home /
FPSController Collision with moving objects
Hello,
I'm using the default unity fps controller and i get really strange behaviours when moving objects collide with me. I get teleported in random places around the zone with the collision. For example i have a script that rotates a door to open it. If the door hits me while opening my char gets teleported in strange locations around the point of impact. Any ideas why?
Answer by OllyNicholson · Jun 23, 2014 at 01:42 PM
This sounds like it could be an issue with the origin of your model or a parenting issue. Make sure you reset the transform and export your model at the origin (0,0,0) and also make sure the player character has the rigid bodies added to it or it's parent at the origin before you move it into place. Otherwise to further troubleshoot this you could do well to check out the sample assets and compare the model/controller/rigid bodies setup in these examples:
Answer by itsboshytime · Jun 23, 2014 at 01:46 PM
I'll try replacing the door mesh with a cube in unity to see if it fixes the problem. Will update you with the results
Your answer
Follow this Question
Related Questions
Player colliding with animations 0 Answers
open and close door 0 Answers
Creation of a door with collision for a FirstPerson game 0 Answers
play animation on collision+input? 0 Answers
Canceling animation.Play functions after being used 1 Answer