Unlike joints, this method moves the button between the initial position and the target position for one single object. Physical joints would allow multiple objects on the button without any setup, but the joints sometimes flew completely off the button or caused jitter. So this is the best method I've found. This method currently detects a single object. To check multiple objects, you would need to store a counter or a array of objects and each time an object goes in or out, check whether there is still an object on the button or not and emit the signals accordingly. Also, the button movement makes use of the move_toward method, which is compared here with the lerp function: ruclips.net/video/25xYefKIYKo/видео.html
While animations are great, I prefer the math-based approach because I can then control every aspect of it and dynamically change the press height if needed.
Unlike joints, this method moves the button between the initial position and the target position for one single object. Physical joints would allow multiple objects on the button without any setup, but the joints sometimes flew completely off the button or caused jitter. So this is the best method I've found.
This method currently detects a single object. To check multiple objects, you would need to store a counter or a array of objects and each time an object goes in or out, check whether there is still an object on the button or not and emit the signals accordingly.
Also, the button movement makes use of the move_toward method, which is compared here with the lerp function: ruclips.net/video/25xYefKIYKo/видео.html
Ништяк!
I have a question regarding your whiteboard project - is it possible to contact you somehow?
Yes. arcane.energy.help@gmail.com
try animatioon
While animations are great, I prefer the math-based approach because I can then control every aspect of it and dynamically change the press height if needed.