Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
float spritePos = _collider2D.bounds.max.y + _groundCollider.bounds.max.y;
spritePos = spritePos * 1.5f;
_transform.position = new Vector2(_transform.position.x, spritePos);
The scale property of the transform component is responsible for the size of the object.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question