Jump to content
Sign in to follow this  
eunchae

Is there any way to know the collision frame of a particle?

Recommended Posts

hello.

I only want to know the first frame when the particle collided. I used the detect node to create a group in popwrangle and saved the frame... but the frame is accumulated. Can't we just get the frame when it collided?

 

Thank you.

Share this post


Link to post
Share on other sites

Extend your popwrangle code to examine the @hitnum attribute as well. Store the time in a new attribute. Time is in seconds, so you'll have to convert it to a frame based upon your current FPS.

Something like...

if(@hitnum==1){f@first_hittime=@hittime;}

 

Edited by Atom

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
Sign in to follow this  

×