Files
2026-02-21 16:45:37 +08:00

27 lines
429 B
C#

using PhysicsTools;
using UnityEngine;
public class MoveCube : MonoBehaviour
{
public Vector3 velocity = new Vector3(0f, 0f, 0f);
public Rope rope;
public float incDist = 1f;
private void Start()
{
}
private void FixedUpdate()
{
Vector3 position = base.gameObject.transform.position;
position += velocity * Time.fixedDeltaTime;
base.gameObject.transform.position = position;
}
private void Update()
{
}
}