导入绳插件

This commit is contained in:
2025-11-03 23:13:35 +08:00
parent 7cf7f545bc
commit 32f07eb14e
2026 changed files with 12683 additions and 342462 deletions

View File

@@ -0,0 +1,23 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace RopeToolkit.Example
{
public class BackAndForthMovement : MonoBehaviour
{
public Vector3 amount = new Vector3(2.0f, 0.0f, 0.0f);
protected Vector3 startPos;
public void Start()
{
startPos = transform.position;
}
public void Update()
{
transform.position = startPos + amount * Mathf.Sin(Time.time);
}
}
}