View Full Version : Trigger event at frame before collision

05 May 2008, 05:14 PM
How can I get something to happen the frame before a particle collides?

Basically, I want to change the collisionWorldPosition of a particle the frame BEFORE the collision, but based on the collisionWorldPosition of the collision.

I know I can do

float $collFrame = ((particleShape1.collisionTime*24)-1);

but how do I trigger an event at that frame?

05 May 2008, 08:37 PM
I dont have any idea...

but maybe there is a way to query that information and use it by caching the particles. by doing that collision wouldn't be detected on simulation. maybe you could query changes in direction or sth like that... but I haven't delved into that so far.

just some thoughts...

05 May 2008, 11:32 PM
This is just a cheap idea, maybe u can create a dummy object to use for triggering the event. create an offset surface and then turn off it visibilty on render.

05 May 2008, 05:20 AM
Is it possible to create a dummy with collision detection ?
Or can you change the mass of a rigid body so that objects will pass through it ?

CGTalk Moderation
05 May 2008, 05:20 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.