Get actor transform not updating frequently enough

I have a fast moving object, I’m creating the illusion that another object is attached to it by setting it’s transform to the others on tick

To demonstrate my issue I made a new third person map and imported a rectangle with 2 open faces from blender

Here is the blueprints

Here is the character being set equal to the root scene components transform on the rectangle while stationary, working.

Applying a moderate impulse event, ejecting from the character, and pausing the editor shows this. The character is very far from the rectangle’s root component. When applying high impulse events, the character can even be seen outside the rectangle entirely.

Adding dampening to the rectangle causes the character to slowly move back towards the root component of the rectangle as it slows down.

I assume this is due to get actor transform not updating on frame, or that get actor locations do not update simultaneously maybe? I noticed this because get location and get rotation do not update simultaneously, so it’d produce weird angles for hit scan projectiles. Let me know if any of you have any ideas.

Not looking for work-arounds by modifying inheritance btw :slight_smile:

check tick group on your actors/components

You probably want to set the tick group for the tick event that updates the second transform to the latest possible setting, post physics. By then the first transform it is chasing will/should be settled.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.