-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
…t working correctly with Rigidbody2D
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using UnityEngine; | ||
using System.Collections; | ||
using DG.Tweening; | ||
|
||
public class DOJumpRigidbody2D : MonoBehaviour | ||
{ | ||
public Rigidbody r3D; | ||
public Rigidbody2D r2D; | ||
|
||
IEnumerator Start() | ||
{ | ||
yield return new WaitForSeconds(1); | ||
|
||
r3D.DOJump(new Vector3(5f, 0, 0), 3f, 2, 2f, false); | ||
r2D.DOJump(new Vector2(5f, 0), 3f, 2, 2f, false); | ||
// r2D.transform.DOJump(new Vector2(5f, 0), 3f, 2, 2f, false); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.