Closed arcman7 closed 1 year ago
Parenting GameEntity
objects as seen here for example:
Oh nice! Thanks for the quick reply!
this.headContainer = new GameEntity()
this.add(this.headContainer)
So this actually affects the positioning of child entities; positioning the parent and rotating the parent affects the children entities position and rotation attributes in world space?
You're welcome! Yes, it definitely should behave like parenting in BJS.
On Tue, Jan 10, 2023, 6:39 AM Andrew Ryan Carpenter < @.***> wrote:
Oh nice! Thanks for the quick reply!
this.headContainer = new GameEntity() this.add(this.headContainer)
So this actually affects the positioning of child entities; positioning the parent and rotating the parent affects the children entities position and rotation attributes in world space?
— Reply to this email directly, view it on GitHub https://github.com/eldinor/yuka-babylonjs-ts-starter/issues/2#issuecomment-1376760832, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYKGHOIA5IKFBF2B3ENKRDWRTY2HANCNFSM6AAAAAATV7XNWA . You are receiving this because you commented.Message ID: @.***>
What YUKA parenting system are you referring to? I searched through the code at https://github.com/Mugen87/yuka and I couldn't find any references to a parenting system other than that used with the Node class, unrelated to any sort of positioning system.