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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.