0 votes

I would like to simulate a large number of objects falling to the ground, As they fall, I would like them to randomly rotate about their pivot point. Imagine dropping a bunch of tiny cubes, how they would randomly tumble around in the air until they hit the ground.

I am using a 3D particle system with a custom mesh as the particle and I am able to make the particles spin on a single axis. However, I'd like for them to rotate around their pivot point on all axises. Is this possible using the the 3D particle system?

asked May 11 in Engine by GeordiLaThor (12 points)

1 Answer

0 votes

I'm not sure because I haven't tested it myself, but I think you can do that using a "ParticleMaterial".

The documentation explains a method for controlling the position and velocity of particles.

https://docs.godotengine.org/en/latest/tutorials/3d/vertex_animation/controlling_thousands_of_fish.html

If you need to send variables to your shader, you can use the "set_param()" function in your script.

Hope this helps.

answered May 13 by kris_bsx (42 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.