Bumber64 Posted April 10, 2022 Share Posted April 10, 2022 (edited) I'm using: inst.entity:SetParent(parent.entity) but this causes inst to rotate when parent does, which I don't want. Is there any way to avoid this, or a workaround? inst, in my case, is an entity based on "firefighter_placement" asset, using "ANIM_ORIENTATION.OnGround" and "LAYER_BACKGROUND". Edited April 10, 2022 by Bumber64 Link to comment https://forums.kleientertainment.com/forums/topic/138972-how-to-attach-entity-to-parent-but-dont-rotate/ Share on other sites More sharing options...
IronHunter Posted April 10, 2022 Share Posted April 10, 2022 I don't think you can directly stop rotation. But if you update your child's rotation with the negative rotation of the parent whenever the parent rotates. That should counter it out. I am not sure if there is a listenforevent or fn hook for rotation baseline however. Which makes updating tricky. 1 Link to comment https://forums.kleientertainment.com/forums/topic/138972-how-to-attach-entity-to-parent-but-dont-rotate/#findComment-1556589 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now