Unity/잡학 사전

[Unity] Mathf.Sin()

sorry0101 2022. 12. 13. 15:12

Mathf.Sin(Time.time * 1)

: 프레임마다 약 -1 ~ 1 사이로 변화

https://www.mathsisfun.com/algebra/trig-sin-cos-tan-graphs.html

 

Graphs of Sine, Cosine and Tangent

Graphs of Sine, Cosine and Tangent A sine wave made by a circle: images/circle-sine.js A sine wave produced naturally by a bouncing spring: Plot of Sine The Sine Function has this beautiful up-down curve (which repeats every 2π radians, or 360°). It st

www.mathsisfun.com

https://docs.unity3d.com/ScriptReference/Mathf.Sin.html

 

Unity - Scripting API: Mathf.Sin

Note: If using very large numbers with this function, there is an acceptable range for input angle values for this method, beyond which the calculation will fail. On windows, the acceptable range is approximately between -9223372036854775295 to 92233720368

docs.unity3d.com

 

'Unity > 잡학 사전' 카테고리의 다른 글

[Unity] Singleton  (0) 2023.01.15
[Unity] 물체 회전  (0) 2023.01.12
[Unity] string.Format()에서 $ 의미, 문자열 보간법  (0) 2022.12.02
비동기  (0) 2022.11.30
[Unity] UML, 클래스 다이어그램  (0) 2022.11.25