Mr-Craig / AsyncTickPhysics

Access UE5s Async Physics event using C++ or Blueprints
76 stars 13 forks source link

Get transform #3

Closed SlartiBADFAT closed 1 year ago

SlartiBADFAT commented 1 year ago

Hi! Great plugin, thanks a lot for the work!) Is it possible to add a "get transform component" node?

Mr-Craig commented 1 year ago

You can already get the transform of any component by using the ATP_GetTransform function

SlartiBADFAT commented 1 year ago

As far as I understand, the get transform presented in the plugin allows you to interact with the mesh only, in any case, I couldn't get it to work with the scene component

Mr-Craig commented 1 year ago

You should probably just use the regular get transform node since the physics thread wouldn't change the position of a scenecomponent

SlartiBADFAT commented 1 year ago

If I'm not mistaken, the usual "get transform" is tied to the event tick, which causes problems

Mr-Craig commented 1 year ago

If I'm not mistaken, the usual "get transform" is tied to the event tick, which causes problems

you should be fine to call this from the async tick, you only use the ATP functions to get the correct values from the physics thread but since scene components aren't changed by it you should be fine!