Skip to content

L’atelier d’Hyobin

#game #programming # device

  • Game
    • Journal
    • Review(Games)
  • Programming
    • Introduction to C# Programming and Unity
    • More C# Programming and Unity
    • Intermediate Object-Oriented Programming for Unity Games
    • C# ADD-ON
    • Unity Tutorial
      • Scripting
      • Pysics
        • 3D Physics
      • Project
        • Roll a Ball
        • Space Shooter
        • Space Shooter 2D
        • RPG Tutorial
  • Device
    • Review(Devices)

Mathf.Cos

Unity 2D – Moving Object in Random Direction

Posted on May 15, 2018 by 김효빈
4
Random.Range | Mathf.Cos | Mathf.Sin

Random.Range

public static float Range(float min, float max);

  • Returns a random float number between and min [inclusive] and max [inclusive] (Read Only).
  • max is inclusive, so using Random.Range( 0.0f, 1.0f ) could return 1.0 as a value.
5
Result
Posted in Unity ADD-ONTagged Mathf, Mathf.Cos, Mathf.PI, Mathf.Sin, Random.RangeLeave a comment
Website Built with WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • L’atelier d’Hyobin
    • Already have a WordPress.com account? Log in now.
    • L’atelier d’Hyobin
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...
 

    Design a site like this with WordPress.com
    Get started