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.
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.