Get Physics Linear Velocity broken in 5.4

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Character

Summary

In 5.4.3, and probably all 5.4 version, get physics linear velocity is broken and returns 0,0,0.
get bone velocity is also broken.

This is a regression from 5.3

My character simulates physics and I’ve tried SetUpdateKinematicFromSimulation = true. didnt work

Steps to Reproduce

Get a character make it ragdoll and simulate physics and attach a physics linear velocity node aswell as a print string ont ick, it will trturn 0,0,0 without fail.

Expected Result

I expect it to return the actual velocity

Observed Result

0,0,0

Platform(s)

PC

Made a quick demo of character going ragdoll. Added linear velocity to the pelvis on tick via a sine wave and it seems to report ok values.

There is definitely something that changed between 5.3 and 5.4 in regards to this function.

I recently migrated my project to 5.4 and during testing noticed that a feature had stopped functioning. I narrowed the problem down to GetPhysicsLinearVelocity() returning 0. It does not return 0 in 5.3, only 5.4.

Looking at github, the function’s code has not changed, except for the addition of supporting chaos handles, which is not relevant to this issue.

I do believe I was using the function incorrectly though (on a character capsule), and replacing it with AActor::GetVelocity() works fine in my case. The fact remains, however, that the function’s behavior has changed between versions for no apparent reason.