nParticle aim direction

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

 
Thread Tools Search this Thread Display Modes
  1 Week Ago
nParticle aim direction

I have nParticles instances in a circle and I am trying to get their aim direction to point to the center of the grid so all characters are facing towards the centre of the circle. (towards the guy in the middle of the circle)
I tried something similar to the following thread:http://forums.cgsociety.org/showthr...ection
And I created a vector attribute called aimPP.


and inside I added the expression:
nParticleShape1.aimPP =<<0, 0,0>>;
Then I set the aimDirection to aimPP.

I would appreciate any help.



p, li { white-space: pre-wrap; }
 
  1 Week Ago
I think you need to define an aim vector.
You currently use <<0,0,0> which doesn't define a characters axis to aim.

It looks as though Z is your aim direction based on your image.

So,
<<0,0,1>>
Then use aimPP as your aim direction.

Finally, you need to give the particles the center of the grid as a target to aim at , a particle goal object should do the trick, or an attract field.
 
  1 Week Ago
I think you can subtract the grid center from the character's position to get the aim vector. That would avoid goals and fields. If the grid center is at the the origin then just use the position as the aim.
__________________
www.johnpattersononline.com
 
  4 Days Ago
Originally Posted by theJoncrow: I think you need to define an aim vector.
You currently use <<0,0,0> which doesn't define a characters axis to aim.

It looks as though Z is your aim direction based on your image.

So,
<<0,0,1>>
Then use aimPP as your aim direction.

Finally, you need to give the particles the center of the grid as a target to aim at , a particle goal object should do the trick, or an attract field.
I found after lots of searching around, this thread and on page 2 is the solution with using a cube to point the characters to center of grid:http://forums.cgsociety.org/showthread.php?f=86&t=789536&page=1&pp=15&highlight=particle+instance+direction
There were 2 vector attributes that I had to setup, an aim position (using the information from the cube thread above) and also I had to create an Aim Axis as my character pointed z axis forward, I used a vector attribute called aim axis and used the <<0,0,1>> and the combination of the two attributes worked in my case.
 
reply share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 10:45 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.