- Home /
Rigidbody jumpPad Not working
So current i have a system in place where a player will land on one of the jump pads and they will be sent flying into the air, (Using Rigidbody).. But the problem is, sometimes when on collision the pad doesnt seem to give any or just a minute amount of force to the player when they land on it..
Its strange sometimes it works, and sometimes it doesnt.. Even at intense collision force i have seen it work properly..
My setup: Platform: Rigidibody, cube collider, jump pad script. Player: Rigidbody, Capsule collider, RigidbodyFIrstPersonController. The force multiplier on the pad is 17000
using UnityEngine;
public class BoostPad : MonoBehaviour
{
public float ForceMultiplyer;
void OnCollisionEnter(Collision collision)
{
collision.gameObject.GetComponent<Rigidbody>().AddRelativeForce(Vector3.up * ForceMultiplyer);
}
I really dont understand how it seems to not work.. Sometimes i can even just walk across the object without being moved..
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Force required to throw an object. 1 Answer
Smooth dashing issues 0 Answers
Distribute terrain in zones 3 Answers