Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Digital Manufacturing (2025)
- // Script 1: RobotController
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class RobotController : MonoBehaviour
- {
- public Transform joint;
- public float velocity = 30f;
- // Update is called once per frame
- void Update()
- {
- float angleDelta = velocity * Time.deltaTime;
- joint.Rotate(0f, 0f, angleDelta);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement