Module jumpy::core::attachment
source · Expand description
Utilities for attaching entities to other entities.
There are two kinds of attachments: Attachment and PlayerBodyAttachment.
Attachment just makes one entity follow another, with some special handling for sprites, and
the PlayerBodyAttachment specifically matches the player’s body movement animation to make
sure that, for example, a held item will bob up and down with the player.
Structs§
- Component for attaching an entity to another entity.
- Component that animates attachment offset with easing
- Metadata for
AttachmentEasing - Metadata for attachment
- This is used by the
update_player_body_attachmentssystem internally. - A component for attaching an entity to the player’s body.
Functions§
- System that cleans up old
AttachmentandHadPlayerBodyAttachmentMarkercomponents from an entity when thePlayerBodyAttachmentis removed. - System to update the transforms of entities with the
Attachmentcomponent. - System that updates entities with the
PlayerBodyAttachmentcomponent.