add note about parent objects not being supported

This commit is contained in:
yuni 2024-04-01 19:17:08 +02:00
parent 68cc65a2eb
commit b583970a88

View file

@ -265,6 +265,8 @@ fn handle_cheats(
// A variant of bevy_xpbd_3d::plugins::position_to_transform that adjusts
// the rendering position to center entities at the player camera.
// This avoids rendering glitches when very far away from the origin.
//
// NOTE: This currently does not support parent objects.
pub fn position_to_transform(
q_player: Query<&Position, With<actor::PlayerCamera>>,
mut q_trans: Query<(&mut Transform, &Position, &Rotation)>,