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
Why are there no methods to edit the global transform? There is
pub fn translation_mut(&mut self) -> &mut Vec3A and
pub fn mul_transform(&self, transform: Transform) -> GlobalTransform
It can be edited past the PostUpdate stage it seems, but there aren't any ways to construct a global transform or set it's translation or rotation. The methods from_xyz, from_translation and from_rotation are in the source code, but why are they marked with #[doc(hidden)]?
I think it would be a good idea to remove them. It seems useful, and related to providing a nice workaround to #1780
Well. It implements From for Transform, which seems odd but it works I guess,
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Why are there no methods to edit the global transform? There is
pub fn translation_mut(&mut self) -> &mut Vec3A and
pub fn mul_transform(&self, transform: Transform) -> GlobalTransform
It can be edited past the PostUpdate stage it seems, but there aren't any ways to construct a global transform or set it's translation or rotation. The methods from_xyz, from_translation and from_rotation are in the source code, but why are they marked with #[doc(hidden)]?
I think it would be a good idea to remove them. It seems useful, and related to providing a nice workaround to #1780
Well. It implements From for Transform, which seems odd but it works I guess,
Beta Was this translation helpful? Give feedback.
All reactions