UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a cube and make it fall at position -1.92-0.4-0.3168189"
using UnityEngine; public class FallingCube : MonoBehaviour { public GameObject cubePrefab; private Vector3 cubePosition = new Vector3(-1.92f, -0.4f, -0.3168189f); void Start() { GameObject cube = Instantiate(cubePrefab, cubePosition, Quaternion.identity); cube.AddComponent<Rigidbody>(); } }