- Home /
Question by
spike2240 · Aug 09, 2015 at 03:55 AM ·
physicsunity 2dunity5constraints
2DRigidbody freaks out when constraints frozen
Im creating a 2d runner game and I'm using playerBody.constraints = RigidbodyConstraints2D.FreezeAll when my player runs into and object in the game, but often, instead of just freezing likes he's suppose to, he begins to lag out and teleports all over the place. Any idea on how to fix this? I tried setting his velocity to vector2.zero, but he still slides off of objects before dying.
Comment