There are two methods to make object move in unity:
- By changing its Transform (Position).
- By adding Force by using AddForce() method.
Force and Velocity both are component of Physics.
Below is the script for your reference.
using UnityEngine;
using System.Collections;
public class BallScript : MonoBehaviour
{
void Update ()
.........
To view the full code about How to move make objects by adding force in unity visit FindNerd.
Being
an effective forum, here you can also post & look for various
programming queries along with their solutions including c, android,
php, java questions
and answers etc.
No comments:
Post a Comment