1. svn -> git
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
|
||||
[AddComponentMenu("Destructible 2D/D2D Top Down Wheel")]
|
||||
public class D2D_TopDownWheel : MonoBehaviour
|
||||
{
|
||||
public Rigidbody2D body;
|
||||
|
||||
public float SurfaceSpeed;
|
||||
|
||||
protected virtual void FixedUpdate()
|
||||
{
|
||||
if (body != null)
|
||||
{
|
||||
body.AddForceAtPosition(transform.up * SurfaceSpeed, transform.position);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user