jerome Posted October 26, 2017 Share Posted October 26, 2017 Hi folks, Here's a new light feature in the SPS : Solid Particle Pivot It's just a Vector3 (defaut Zero) associated to each solid particle in the SPS. You can set a different value to translate the current particle from its initial local position, then the particle is still rotated around this original point but no longer set on it when rotated. This is the same notion than the Translation Matrix what you could use when defining a Pivot Matrix. Example : http://jerome.bousquie.fr/BJS/test/spsPivot.html 4000 orbiting tetrahedrons around 4000 rotating boxes ... the whole system also rotating around Y, everything with no complex maths at all, just the usual .rotation properties PG and documentation coming soon ... JohnK, Gijs, NasimiAsl and 4 others 7 Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted October 27, 2017 Share Posted October 27, 2017 Excellent, we'll soon be able to render a whole galaxy! Quote Link to comment Share on other sites More sharing options...
jerome Posted October 27, 2017 Author Share Posted October 27, 2017 documented : http://doc.babylonjs.com/how_to/solid_particle_system#particle-management + PG : http://playground.babylonjs.com/#LXXL6Y RaananW and NasimiAsl 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.