Hey Guys I have this problem:
I wanted to add Physics to an object the Player can jump on and when he does the object goes down a little and when he jumps off of course it gets back to normal, so that we have this realistic effect.
I played around a little with the diffrent Joints from the Physics pannel but it doesnt seem to work out right like I want it. If you can help me somehow, please answer -
Thank you
Can’t you just just check for collision between player and object, and then apply force to the player?
Thanks for the Answer =)
But a little bit noob friendlier if u don`t mind :)?
public float speed = 5f;
void OnCollisionEnter(Collider collider){
if(collider.name == "player")
collider.rigidbody.AddForce(Vector3.up*speed);
}
Wow thank you Ill give it a try