Skip to main content

Common Issues - Physics

This page is dedicated to common issues surrounding physics. If you are experiencing an issue that does not relate to physics consider looking at one of the other pages in this section, which are also listed here.

Make sure to Update Playable!
A lot of times issues can be fixed by simply updating your plugin to the latest version, please make sure to check you are on the latest release version before looking further into this section. More info on how to do this here

OnMouseDown() not working with 2D colliders#

This is likely happening due to OnMouseDown() logic only implemented via the 3D Physics system as of now.

Possible solution:

  • Use 3D colliders instead.

Large lag spikes#

This may be happening due to your collision detection being set to "Continues Dynamic", as this is VERY expensive.

Possible solution:

  • Use "Continuous Speculative" instead.

OnCollisionEnter() not getting called#

This may be happening due to the collider and script containing OnCollisionEnter() not being on the same object.

Possible solution:

  • Move the script containing OnCollisionEnter() to the same object as the collider.

Colliders not working#

This may be happening if you are using an unsupported Character controller..

Possible solution:

  • Use a rigidbody instead.