Jump to content

Pop sprite Problem


asxp3

Recommended Posts

Hi Guys

I got a problem with pop sprite, I set a sprite rotation on my particle sim, I use rand(id) to make every particle rot differently but when the particle hit on the ground, the spriterot attribute keep going, so that it keep rotating on the ground when I assign a sprite texture, so is there a way to make the particle stop rotate once the particle hit on the ground?

thanks a lot for your help.

Link to comment
Share on other sites

if you have collision information from your simulation you could do something like:

if (f@hitnum >= 1)

{

v@v = 0;

v@w = 0;

}

 

or if you  don't want it to completely stop from one frame to another you could do *= 0.75 instead.

 

might be a better way, but hard to say without a hipfile.

let me know if you need more specifics

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...