Hi
Iam new to unity, can someone help me with making the ball bounce just like in this game “Phases” https://play.google.com/store/apps/details?id=com.ketchapp.phases.
Youtube video making of phases in Buildbox
This is what i have tried so far
using UnityEngine;
using System.Collections;
public class PlayerController : MonoBehaviour {
private Rigidbody myRigidbody;
public float speed;
void Start(){
myRigidbody = GetComponent<Rigidbody> ();
}
// Update is called once per frame
void FixedUpdate () {
float moveX = Input.GetAxis("Horizontal");
Vector3 movment = new Vector3(moveX, 0.0f, 0.0f);
myRigidbody.AddForce(movment * speed);
}
}
Ball (Player)
Physic Material i have added to ball.
I want ball to bounce and move just like in the game phases. how can i do that in unity?
Thank you.