View Full Version : Instance Rotation on Collision
optimus008 04-03-2008, 04:24 PM Any one know how to use the Maya PP collision attributes?
I need some help on creating Particle instance rotation when they collide with a surface.
|
|
Create a event for particle collision.
create a custom attribut called rotate,
This will give you the ability to make something like... in runtime.
if (yourParticleShape.event == 1)
{
The rotation you want given by the created rotate attribute.
}
XminusOne
07-01-2008, 06:54 PM
How about the opposite. I want the instanced geometry to stop rotating after the collision. Man this is driving me nuts. I need to figure out expression a bit better. Thanks if you can help.
I tried this in the runtime before dynamics:
particleShape1.userVector2PP+=<<15,30,15>>; <----my initial runtime that I have
and added this right after
}
if(particleShape1.event2==1)
}
particleShape1.userVector2PP+=<<0,0,0>>;
and I get a syntax error.
Aikiman
07-01-2008, 07:59 PM
How about the opposite. I want the instanced geometry to stop rotating after the collision. Man this is driving me nuts. I need to figure out expression a bit better. Thanks if you can help.
I tried this in the runtime before dynamics:
particleShape1.userVector2PP+=<<15,30,15>>; <----my initial runtime that I have
and added this right after
}
if(particleShape1.event2==1)
}
particleShape1.userVector2PP+=<<0,0,0>>;
and I get a syntax error.
Curly brackets in wrong place
if(particleShape1.event2==1) {
particleShape1.userVector2PP+=<<0,0,0>>;
}
XminusOne
07-01-2008, 08:24 PM
Jeremy, you're a lifesaver man. Thanks a ton!!! I hope I can repay the favor sometime.
CGTalk Moderation
07-01-2008, 08:24 PM
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.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.