PDA

View Full Version : Trigger event at frame before collision


drGonzo
05-05-2008, 06: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?

BadG3r
05-06-2008, 09: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...

JulianS
05-07-2008, 12:32 AM
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.

Glewciefer
05-28-2008, 06: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-28-2008, 06: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.