# nParticle aim direction

 Thread Tools Search this Thread Display Modes
 10 October 2017 michelm portfolio 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; } share quote
 10 October 2017 theJoncrow portfolio Adam Joncrow Entertainment Surrey, Canada 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. share quote
 10 October 2017 JohnLIC Scholar john BYOB NYC, USA 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 share quote
 4 Weeks Ago michelm portfolio 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. share quote
 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 vBulletinCopyright ©2000 - 2006, Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
 Please select one User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home -------------------- Gallery     CG Awards     Featured 2D     Featured 3D     Latest Entries Main     News     General Discussion     Featured Videos     Education     Off Topic     Recruitment         Temp Job Board Challenges     CGSociety/IAMAG Beyond the Wall     The AMD RADEON PRO Challenge!     Lighting Challenges     Professional Feedback Software     Autodesk Maya         Maya Dynamics         Maya Rendering         Maya Character Setup         Maya Programming     Autodesk Miscellaneous         Autodesk MotionBuilder         Autodesk Mudbox         Autodesk Softimage             XSI: Programming             ICE: Interactive Creative Environment     Autodesk 3ds max         3dsMax Tutorials & Tips         3dsMax Resources         3dsMax SDK and MaxScript         Plugins & Add-ons         Particle Flow     Maxon Cinema 4D         Cinema 4D Resources     The Foundry Modo         The Foundry Time Travel Challenge     Pixologic ZBrush     Photoshop / Painter     Side Effects Houdini     Blender     Lightwave 3D         LW Resources         LW Tutorials     Allegorithmic Substance         Substance Designer         Substance Painter     E-on Software Vue     Compositing Software         The Foundry Nuke         Adobe After Effects         Autodesk Effects and Compositing         Eyeon Software Digital Fusion WIP     WIP/Critique: 3D     WIP/Critique: 2D         Speedpaints & Sketchbooks     WIP/Critique: Animation     Collaborative Projects Techniques     Art Techniques and Theories     Digital Matte Painting         Digital Matte Painting Mini-Challenge     Modeling         Modeling Challenge             Member Model Collection     Texturing and Surfacing     Character Rigging     Animation     Lighting and Shaders     Compositing and Editing     Anatomy and Figurative Art         SPOTLIGHT: Best of the Artistic Anatomy and Figurative Art Forum         Tutorials and Workshops         Personal Anatomy & Sketchbook Threads         References, Resources, and Supplies Technical     VR/AR     Game Engine     Graphics Programming     Technical and Hardware
Miscellaneous

All times are GMT. The time now is 11:48 PM.

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