See if 3D objects are colliding

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By J.B Stepan

Is there a way to see if 2 3d objects are colliding is code? Without using raycasts

yep! it’s called signals. Here’s the documentation on them, they are pretty straight forward. signal documentation.

Millard | 2020-09-17 04:28

:bust_in_silhouette: Reply From: kidscancode

Depends on the type of 3D object. There are several 3D collision objects, which inherit from CollisionObject - you can whichever one offers the behavior you need for your particular setup.

  • Area - detects overlap with other areas or bodies

  • StaticBody - non-moving obstacle

  • KinematicBody - collisions and manual control

  • RigidBody - controlled by physics engine