Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the position of a h3d.scene.Object within the sync method doesn't update its children #1252

Open
alexpana opened this issue Dec 28, 2024 · 1 comment

Comments

@alexpana
Copy link

Here is the code for reference: https://github.com/alexpana/path-of-haxe/blob/2da60ec47f7974d444fefdb442e72dbd4f20b248/src/Bullet.hx#L20

The Bullet class overrides sync to update its own position. Since the implementation of syncRec immediately clears the posChanged flag of the object, I'm forced to manually sync the position of the children, otherwise they never inherit the position of the bullet (the mesh remains in place).

What would be an idiomatic way of implementing this?

@ncannasse
Copy link
Member

Yes we noticed that recently and that's not the case in H2D, only H3D so it should be fixed.
Ping @clementlandrin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants