I
I
IliaNeverov2020-07-14 13:35:35
JavaScript
IliaNeverov, 2020-07-14 13:35:35

How to make it so that when one cube collides with another cube, a function is called in three.js?

Good day :) I have two cubes in three js, please tell me how to make a certain function be called when they collide?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
profesor08, 2020-07-14
@IliaNeverov

This is called a collision. You can look for more examples. Here is one with code.
https://threejs.org/examples/?q=physics#physics_am...
https://github.com/mrdoob/three.js/blob/master/exa...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question