dotween
dotween copied to clipboard
Dotween Rigidbody2d.DoJump went pass collider on X axis
I am using Unity 2019.4.31.f1 and DoTween Pro 1.0.310.
When I use DoJump on rigidbody 2D, the X axis movement will go pass the collider, while the Y axis movement hit the collider just fine.
The code I used :
private void Jump()
{
if (CLICK_JUMP())
{
tempV2 = transform.position;
tempV2.x -= 100;// I tried deleting one of them to test the axis movement
tempV2.y += 100;// I tried deleting one of them to test the axis movement
rb.DOJump(tempV2, 1, 1, 1f, false);
}
}
wether it update, lateupdate, fixedupdate, the X axis movement will pass through the collider.
The same problem. Dojump just ignore the collider