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
It should be possible to attach one Entity to another, calculating its position relative to the attached-to object. This kind of thing is needed for moving platforms, rush jet, shield weapons, etc.
Possible implementation could be via an Attachment object, which all Entities have a unique_ptr to. When it's non-null, positions are calculated based on the attachment. When it is null, positions are calculated in absolute terms.
The text was updated successfully, but these errors were encountered:
It should be possible to attach one Entity to another, calculating its position relative to the attached-to object. This kind of thing is needed for moving platforms, rush jet, shield weapons, etc.
Possible implementation could be via an
Attachment
object, which all Entities have aunique_ptr
to. When it's non-null, positions are calculated based on the attachment. When it is null, positions are calculated in absolute terms.The text was updated successfully, but these errors were encountered: