PDA

View Full Version : Particle Instancer - Limit Z Rotation?


FluffyDucksRockMySocks
09-18-2009, 01:08 AM
Hi there, I'm creating a swarm of wasps for my current group project at school I have achieved the basic movement I want. The problem is the wasps look a bit like a school of fish.
I want to limit the amount that the instances can rotate in the Z axis so that they stay relatively horizontal with only a little Z rotation.
I currently have Aim Direction set to Velocity, what I need is an expression that takes the resulting Z rotation value and divides it by 80% or so.

Any help is much appreciated,
Cheers

homedog
09-18-2009, 05:19 AM
try to add a new vector pp attribute,like "myVelocity",write a runtime expression:
vector $v=velocity;
myVelocity=<<$v.x,$v.y*0.2,$v.z>>;
use myVelocity to control aim direction.

perhaps you should *0.2 use x or z depending on your scenes.
hope it help.

FluffyDucksRockMySocks
09-19-2009, 02:03 AM
Hey thanks that worked perfectly! I'll post a link to the video once we've finished. Fingers crossed it'll be done in 3weeks If anyone is interested in seeing the effect this achieves.

CGTalk Moderation
09-19-2009, 02:03 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.