You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
Here is the code for reference: https://github.com/alexpana/path-of-haxe/blob/2da60ec47f7974d444fefdb442e72dbd4f20b248/src/Bullet.hx#L20
The
Bullet
class overridessync
to update its own position. Since the implementation ofsyncRec
immediately clears theposChanged
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?
The text was updated successfully, but these errors were encountered: