[Question] Is there a equivalent to AimNode?
In UDK we had AimNode in AnimTree which we can use to move certain bones with the camera. Is there a equivalent to this in UE4? Am using a single third person mesh and i have place the camera on characters head. But only the Yaw movement is updated. When i look up/down the camera moves but the players head wont follow it. Is there any way i can make certain bones (in my case i want Neck bone) move with the camera?
asked Mar 11 '14 at 05:08 AM in Everything Else
ue4-archive ♦♦ STAFF
Plugin For You
I turned my BP library into a plugin
Now you can get my Aim Offsets BP Node WITHOUT having to compile any code!
Can be used in content only project!
Also features a Get-Recently-Rendered-Actors function, so you can tell what is being rendered and what isnt :)
See my Plugin for You answer
There is a very clear way to do what you want using Blend Spaces
If you look at the shooter game code you will see exact details.
I've fully implemented all directional aiming with the mouse using blend spaces and single frame animations for each of the 9 positions
From what I've read of your posts, you dont have easy access to shootergame example, so let me explain
Create 9 poses for
facing upper right
facing lower right
facing lower left
facing upper left
Create these single frame animations in 3ds max by positioning character accordingly.
Then import the 9 animations
then turn them into a blend space using the following blend space setup
the center is 0 0
straight to the left is yaw -90, pitch = 0, you get the idea
Calculating the Pitch and Yaw
then you need calculate what the aim offsets should be
this involves a bit of c++,
though once you see the c++ you can probably figure out the blueprint version to run in your anim instance event graph
See my Plugin For You Answer
AimOffset Blueprint Function Library For You
I've tested with my own project that these Blueprint Aim Offset functions work!
So now I've done the hardest part for you, see my other answer for the rest of the process :)
Rama's Blueprint Function Library - Aim Offsets, Thick 3D Lines, and More!
Current List of Functions
Aim Offsets, For Use With Blend Spaces in probable range of -90,90 to 90,90
GetAimOffsets - Original Inspiration for this BP Library, This is a Blueprint version of the same core c++ code as Shootergame uses. With this function you can create a blendspace using 9 animations for the nine directions to create an equivalent of the UE3 Aim Node. You plug the results of this function straight into your Aim Blendspace. See Shootergame example for exact details.
GetAimOffsetsFromRotation - Instead of assuming you want to get the character's aim based on the controller, you can use this version to supply the rotation in world space that you want the character to aim to.
Drawing 3D Lines of Chosen Thickness
Thick3DLineBetweenActors - Draw a 3D line of your chosen thickness and duration between two Actors! You can use the BP color pick to pick line color!
Thick3DLineFromCharacterSocket - Draw a 3D line of your chosen thickness and duration from a specified Character Mesh Socket to your chosen destination. You can use the BP color pick to pick line color!
Thick3DLineFromSocket - Same as above, but you can use any mesh of your choosing.
Conversions RotatorToVector VectorToRotator
Convenience GetControllerRotation - Get the Character's controller's rotation, fast way to get PlayerController or AIController rotation!
File IO SaveStringTextToFile - Save human-readable text to a file of your choosing.
Follow this question
Once you sign in you will be able to subscribe for any updates here