Snap Object To Ground THREE JS

In this video I have explain my function of snapping object or move object to ground or any other object.

source code:

Example:

1 Like

Some quick feedback after glancing over your code:

  • Remove the console.log-lines. It’s generally not nice to have debug statements in library code you expect other people to start using.
  • A callback function is pointless if there isn’t any asynchronous code involved.
2 Likes

@Harold have updated code as you suggested. Thanks for your suggestion