Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

make character move upward forever unity 2d

    public Rigidbody2D m_Rigidbody;
    public float m_Speed;


    void Start()
    {
        m_Rigidbody.velocity = transform.up * m_Speed;
    }
 
PREVIOUS NEXT
Tagged: #character #move #upward #unity
ADD COMMENT
Topic
Name
3+1 =