add note about parent objects not being supported
This commit is contained in:
parent
68cc65a2eb
commit
b583970a88
|
@ -265,6 +265,8 @@ fn handle_cheats(
|
||||||
// A variant of bevy_xpbd_3d::plugins::position_to_transform that adjusts
|
// A variant of bevy_xpbd_3d::plugins::position_to_transform that adjusts
|
||||||
// the rendering position to center entities at the player camera.
|
// the rendering position to center entities at the player camera.
|
||||||
// This avoids rendering glitches when very far away from the origin.
|
// This avoids rendering glitches when very far away from the origin.
|
||||||
|
//
|
||||||
|
// NOTE: This currently does not support parent objects.
|
||||||
pub fn position_to_transform(
|
pub fn position_to_transform(
|
||||||
q_player: Query<&Position, With<actor::PlayerCamera>>,
|
q_player: Query<&Position, With<actor::PlayerCamera>>,
|
||||||
mut q_trans: Query<(&mut Transform, &Position, &Rotation)>,
|
mut q_trans: Query<(&mut Transform, &Position, &Rotation)>,
|
||||||
|
|
Loading…
Reference in a new issue