Booster pad wont work

Im trying to make a speed/booster pad that launches the player forwards. the player is a simple sphere, but i cant get the booster to work. i think it has something to do with it trying to launch the booster instead of the player. but im not sure.`using UnityEngine;
using System.Collections;

public class launch : MonoBehaviour {
private Rigidbody rb;

public float speed;
 %|-1497354561_3|%
public float high;
public float vert;
// Use this for initialization
void Start () {

%|396231387_9|%

// Update is called once per frame
void Update () {

}

void OnTriggerStay(Collider c)
{
    if (c.tag == "player")
    {
        Vector3 movement = new Vector3(hori, high, vert);

        c.GetComponent<Rigidbody>().AddForce(movement * speed);
    }
}
}`

Have you checked whether the tag is actually “player”, it’s usually “Player”, since that’s a default tag.
If you’re sure you enter the method, then maybe the force you apply is too small.

So check whether the code is called and whether the variables aren’t too unimpactful.
Not sure if you have a “zone” where the player is boosted in, or whether it should be a single trigger either.

You could replace it with an OnTriggerEnter and AddForce(x, ForceMode.Impulse);

If the method is called, the if statement is passed, and the force is applied without error and an added debug.log gets displayed without issue. Check the rigidbody for weird settings, like frozen position, or heavy weight.

If you can’t figure it out, I’ll try to help more! :slight_smile: