- Home /
Question by
versionepatche · Aug 08, 2014 at 03:36 PM ·
fpsnetworkprogramming
Rigidbody acts weird when networked
Hello , i'm trying to network my game that uses the sample assets beta's FPS Controller , however , when i collide , the player just keeps sliding opposite of the direction it collided , also , when i desactivate gravity , It Stops That , anyone found a fix for that ? Thanks :)
Edit : Found this as a temporary Solution , it does the trick but it has to move a little bit before stopping , doesn't break the game but is there a better way?
void Update () {
if (Input.GetAxis("Vertical") == 0 && Input.GetAxis("Horizontal") == 0 && GetComponent<FirstPersonCharacter>().grounded)
{
rigidbody.isKinematic = true;
}
else rigidbody.isKinematic = false;
}
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Problem with camera and gun in FPS game 0 Answers
Network fps swap cameras 1 Answer
How to Network Sound? 1 Answer
FPS Network 0 Answers