Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: SomeRandomDude21 on April 27, 2021, 02:56:45 PM

Title: Please help detecting collisions (or lack thereof)!
Post by: SomeRandomDude21 on April 27, 2021, 02:56:45 PM
I've been building a 3d platformer, and my character starts in the air, but I cant get them to detect when their not touching the floor, so they just stay in the air. Can anyone help me?
Title: Re: Please help detecting collisions (or lack thereof)!
Post by: Weak Interactive on April 27, 2021, 04:17:17 PM
Hey,

If you use Unity's default physics system, it will do that for you. Just add a capsule collider and a rigidbody to your character and increase the gravity on the rigidbody. Add box colliders to the ground and that's all you need to have your character fall and land on the ground.

Good luck, and let me know if I misunderstood the question.
Title: Re: Please help detecting collisions (or lack thereof)!
Post by: djaydino on April 28, 2021, 11:03:42 AM
Hi.
You can also use raycasts to detect the floor