Foot placement node: option to gradually match the ground normal on planting

Hi,

We use the Foot Placement node on our project, running 5.6.1. We saw the node has been moved to production ready in 5.7, great stuff!

We are facing a slight issue with this though: for now as soon as the trace hits the ground, the foot is rotated to match the ground normal. The goal would be to have the foot rotated only when planting (based either on an animation curve or a distance from ground).

Is there a way to add a min/max distance to the ground to adjust the foot rotation? If it’s not already in place, is this planned in a future update or shall we consider adding this locally from our own?

Thanks.

Hi, yeah it is possible to effectively apply an alpha to the foot adjustment while going from fully planted (ie. fully locked) to fully unplanted (ie. fully unlocked). You can do this via the Speed Threshold and Unalignment Speed Threshold properties on the Foot Placement Plant Settings struct.

Here’s an example of where that data is set in the Game Animation Sample Project:

[Image Removed]That struct is then set directly on the Foot Placement node.

It uses those values as the min/max to calculate the alpha between, with the value of the input speed curves on the current frame being the variable in the calculation. As your speed curves approach the value of Unalignment Speed Threshold, the modification to the foot is alpha’d out.

If you’re interested in how this is applied in code, you can take a look at where FAnimNode_FootPlacement::GetAlignmentAlpha is used.

Let me know if this gives you what you need.