- Home /
Question by
Eldh · Feb 04, 2014 at 03:20 PM ·
collideranimatorcollider2dboxcollider
Animator resetting my colliders2D
I want to change the size, center , radius... whatever of my colliders at start. I'm using sprites. But my animator keep resetting this values. If i disable the animator the changes are kept. Is that normal ? how to prevent this ?
i'm just doing this
void Start ()
{
animator = GetComponent<Animator>();
boxCol.center = new Vector2(0.37f, 1.75f);
boxCol.size = new Vector2(1.5f,2.62f);
circleCol.center.Set(0.29f,0.67f);
}
Comment
Your answer
Follow this Question
Related Questions
Character Hit Animation play endlessly 2 Answers
How can I combine many BoxCollider2D into one Collider? 2 Answers
A script that auto generated the box collider around a 3d model 3 Answers
Collider closestPointOnBounds returning point that is not touching the collider 2 Answers
Nav Mesh doesn't detect doorframe 1 Answer