
*API https://docs.unity3d.com/Packages/com.unity.ml-agents@2.3/api/Unity.MLAgents.Agent.html Class Agent | ML Agents | 2.3.0-exp.3 Class Agent An agent is an actor that can observe its environment, decide on the best course of action using those observations, and execute those actions within the environment. Inherited Members UnityEngine.Component.GetComponentInParent (System.Boolean) docs.unity..

#1. 불 쉐이더 만들기( 두개의 쉐이더를 섞고 _Time을 이용하여 움직이게 만들기) Shader "Custom/Fire" { Properties { _MainTex ("Albedo (RGB)", 2D) = "white" {} _MainTex2 ("Albedo (RGB)", 2D) = "white" {} _STRENGH("Strengh",Range(1,4))=1 } SubShader { Tags { "RenderType"="Transparent""Queue"="Transparent"} //Opaque , Transparent 투명도 LOD 200 CGPROGRAM #pragma surface surf Standard alpha:fade sampler2D _MainTex; sampler2D _MainTe..

#Standard (물리기반 쉐이더) -물리기반 쉐이더 SurfaceOutputStandard 구조체 사용 #pragma surface surf Standard #pragma target 3.0 sampler2D _MainTex; sampler2D _BumpMap; sampler2D _Occlusion; float _Metallic; float _Smoothness; struct Input { float2 uv_MainTex; float2 uv_BumpMap; }; void surf (Input IN, inout SurfaceOutputStandard o) { fixed4 c = tex2D (_MainTex, IN.uv_MainTex); o.Occlusion = tex2D(_Occlusion, IN.uv..

#유니티 안에서 오브잭트 간의 내각을 구하는데 사용된다 *피타고라스 - 직삼각형의 빗변을 변으로 하는 정사각형의 넓이는 두 직각변을 각각 한 변으로 하는 직사각형 넓이의 합과 같다는 정리. 직각삼각형을 이루는 세 변의 길이의 비에 대한 기본적인 관계. *sin, cos, tan? 예를 들어 직각 삼각형 ABC에서 각 A,B,C의 대변의 길이를 a,b,h라 할때 사인 코사인 탄젠트의 정의는 다음과 같음. *유니티의 Mathf.Atan2()*Mathf.Rad2Deg 을 통해 내각을 구할 수 있다 (0~180 도/0~-180도 ) float GetAngle(Vector2 start, Vector2 end) { Vector2 v2 = end - start; return Mathf.Atan2(v2.y, v2.x)..