Download

Physics and Add Offset

hi,

when I use in one tick Add Offset (local or world) it looks that physics state (forces) is reset:

capsule->AddWorldOffset( offset, false, nullptr, ETeleportType::TeleportPhysics);

capsule->AddForce( force, NAME_None, true);

I tried both TeleportPhysics and None, it looks the same. But very strange is that when I use the same in blueprint, I get correct behavior. Capsule is offseted during the movement.

I need to offset my capsule when moving (by forces), I can’t offset it by forces too (capsule used for IK for VR HMD movement, so I must do small offsets when headset moves.

Am I missing something?
thanks for help

jipo