종잇장
'Physics' 태그의 글 목록

Physics

Study Log

Unity ECS Study Log - 5

1. Unity.Physics 추가 https://docs.unity3d.com/Packages/com.unity.physics@1.0/manual/index.html Unity Physics overview | Unity Physics | 1.0.0-pre.15 Unity Physics overview The Unity Physics package, part of Unity's Data-Oriented Technology Stack (DOTS), provides a deterministic rigid body dynamics system and spatial query system. See the Unity Physics Samples for introductory material, including ..

Study Log

Unity ECS Study Log - 4

1. 이동 구현하기 public partial struct MovableSystem : ISystem { public void OnUpdate(ref SystemState state) { foreach (var (transform, movable) in SystemAPI.Query()) { Vector3 dir = Vector3.zero; if (Input.GetKey(KeyCode.UpArrow)) dir += Vector3.forward; if (Input.GetKey(KeyCode.DownArrow)) dir += Vector3.back; if (Input.GetKey(KeyCode.LeftArrow)) dir += Vector3.left; if (Input.GetKey(KeyCode.RightAr..