playMaker

Author Topic: Please help detecting collisions (or lack thereof)!  (Read 587 times)

SomeRandomDude21

  • Playmaker Newbie
  • *
  • Posts: 1
Please help detecting collisions (or lack thereof)!
« 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?

Weak Interactive

  • Beta Group
  • Playmaker Newbie
  • *
  • Posts: 33
Re: Please help detecting collisions (or lack thereof)!
« Reply #1 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.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Please help detecting collisions (or lack thereof)!
« Reply #2 on: April 28, 2021, 11:03:42 AM »
Hi.
You can also use raycasts to detect the floor