Advertisement
JGroxz

Digital Manufacturing (2025)

Feb 19th, 2025 (edited)
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1. // Digital Manufacturing (2025)
  2.  
  3.  
  4.  
  5. // Script 1: RobotController
  6.  
  7. using System.Collections;
  8. using System.Collections.Generic;
  9. using UnityEngine;
  10.  
  11. public class RobotController : MonoBehaviour
  12. {
  13.     public Transform joint;
  14.     public float velocity = 30f;
  15.  
  16.     // Update is called once per frame
  17.     void Update()
  18.     {
  19.         float angleDelta = velocity * Time.deltaTime;
  20.         joint.Rotate(0f, 0f, angleDelta);
  21.     }
  22. }
  23.  
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement