Jump to content
asxp3

Pop sprite Problem

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.

Share this post


Link to post
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

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

×