목록2023/08/18 (1)
아카이브

BulletController using System.Collections; using System.Collections.Generic; using UnityEngine; public class BulletController : MonoBehaviour { [SerializeField] private float force = 1500f; private Rigidbody rBody; // Start is called before the first frame update void Start() { this.rBody = this.GetComponent(); //방향 * 힘 //월드 좌표 기준으로 힘이 가해짐 this.rBody.AddForce(Vector3.forward * this.force); } Fir..
유니티 심화
2023. 8. 18. 18:30