Recommended Posts

When I create a hexagonal prism for SPS, it does not seem to recognize the rotation.  I have been rotating the particles en masse after creation, but I gotta believe I am just doing it wrong.

https://www.babylonjs-playground.com/#YI6D05#2       The "shapes" have no color.  The particles are colored.

To save memory, I must have "updatable" set to false.  This makes my work-around harder.

Advice requested.

Share this post


Link to post
Share on other sites

The solid particles are built from their model in its local space. It is to say that whatever the transformations applied to the model (translation, rotation, scaling, pivot), they aren't used by the solid particles.

You can either :

- rotate then the particles according to your needs (at construction time with the position function or at any time with an updatable SPS)

- rotate the model, bake it, then build the particles from the rotated baked model : http://doc.babylonjs.com/resources/baking_transformations

- both 😄

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.