Open
Description
What problem does this solve or what need does it fill?
It would be nice to set an anchor point, like you can on Sprite
, on either the transform or mesh.
I am currently creating a game where I would benefit from anchoring the transform on the bottom of the entity.
What solution would you like?
I am envisioning a new component, like this:
enum TransformAnchor {
Center,
TopLeftFront,
TopLeftCenter,
TopLeftBack,
TopRightFront,
Custom(Vec3)
etc...
}
commands.spawn((
Transform::default(),
TransformAnchor::BottomCenter,
));
What alternative(s) have you considered?
An alternative would of course be to just offset the transform manually, but I find that a bit tedious to work with.