Jump to content

Align sprite to direction of travel


bandini

Recommended Posts

Thought this would be easy, but it seems like a challenge.

I am trying to align sprites so that their z axis is always aligned to the camera while the y axis is aligned to the direction of travel (with respect to the camera).

Anybody have a nice way of doing this?

Link to comment
Share on other sites

I did a quick search with "sprite" as the keyword and found this topic.

Maybe it will give you some pointers.

Cheers!

steven

Thanks, Steven. I saw that thread while researching the problem. I came up with a similar but different solution that seems to work. I'll try to post a hip file. Maybe someone can check it out and see if they have any ideas for improvements.

-Adam

Link to comment
Share on other sites

And here is the file...

There's a problem at particle birth, as the birth velocity does not match the velocity of the next frame, so you get a jump in rotation. Not sure if there is a way to get the velocity from the next frame without writing out the file to disk, since that information does not exist in the simulation yet.

AlignSprites_01.hipnc

Link to comment
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.

×
×
  • Create New...