Quantcast
Channel: Questions in topic: "addforce"
Viewing all articles
Browse latest Browse all 1264

Animator and Rigidbody2D Conflicting. Help~

$
0
0
Hi guys and ladies, So i've got a character set up using a hierarchy of sprites and a simple IK script attached to it. at the top of the hierarchy, i've got an empty gameobject which i've added animation controls and rigidbody2D to it. The issue i'm facing is that it seems the animator is conflicting with the physics. On the animator, i've unchecked "apply root motion", changed update mode to "animate physics", but despite doing this, AddForce is giving me weird results. Eg. 1) AddForce(new Vector2D(500, 0)) does not move the character horizontally. 2) AddForce(new Vector2D(0, 500)) "teleports" the character UP instead of pushing it gradually up. 3) the mass and gravity seems haywire too. the character is "super heavy", but drops super slow. 4) if i set the character to start from a drop, when it collide with something, it resets back to the start (drop) position. Anyone know what i'm doing wrong? Any help would be appreciated. Thanks!!! :)

Viewing all articles
Browse latest Browse all 1264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>