Finished tutorial

This commit is contained in:
2026-01-09 10:41:51 +00:00
parent 2a9d124288
commit c8d27ef133
154 changed files with 69096 additions and 4653 deletions

23
Assets/Scripts/Tipper.cs Normal file
View File

@@ -0,0 +1,23 @@
using Unity.VisualScripting;
using UnityEngine;
public class Tipper : MonoBehaviour
{
Rigidbody rb;
[SerializeField] float forceAmount = 10f;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
rb = GetComponent<Rigidbody>();
}
// Update is called once per frame
void Update()
{
}
public void TipObject()
{
rb.AddTorque(transform.forward * forceAmount, ForceMode.Impulse);
}
}