This question was
closed Apr 13, 2018 at 07:17 PM by
YSLogIC for the following reason:
solved it myself
Question by
YSLogIC · Apr 13, 2018 at 03:47 PM ·
rigidbody2d-platformer
Freeze character after collision
I am trying to make the character freeze after it collides with the fire so you cant continue playing
if (other.name == "fire") {
death.enabled = true;
gameObject.GetComponent<Renderer> ().enabled = false;
stop.constraints = RigidbodyConstraints.FreezePosition;
}
Freezing the rigid body positions doesn't stop it moving, is there a way to freeze the transform positions?
Comment
Follow this Question
Related Questions
Character on moving platform with Interpolation 1 Answer
Why does my character sometimes jump higher than other times? 1 Answer
2D Character Rigidbody not moving with arrow keys. 0 Answers
Is it possible to change gravity for only one object? 1 Answer
How to restrict object's movement to a bezier curve? 0 Answers