@@ 141,7 141,7 @@ fn spawn_planets(mut commands: Commands) {
.insert(Sensor);
})
.insert(RigidBody::Fixed);
- let mars_pos = Transform::from_xyz(3000.0 / SCALE, 700.0 / SCALE, 0.0);
+ let mars_pos = Transform::from_xyz(3000.0 / SCALE, 900.0 / SCALE, 0.0);
commands
.spawn(PlanetBundle {
planet_type: PlanetType::Mars,
@@ 1003,18 1003,17 @@ fn load_savefile(
angle_offset = -PI / 2.;
}
- let transform =
- Transform::from_xyz(
- p_pos.x + offset.x / SCALE * angle.cos() - offset.y / SCALE * angle.sin(),
- p_pos.y + offset.x / SCALE * angle.sin() + offset.y / SCALE * angle.cos(),
- 0.,
- )
- .with_rotation(Quat::from_euler(
- EulerRot::ZYX,
- angle + angle_offset,
- 0.,
- 0.,
- ));
+ let transform = Transform::from_xyz(
+ p_pos.x + offset.x / SCALE * angle.cos() - offset.y / SCALE * angle.sin(),
+ p_pos.y + offset.x / SCALE * angle.sin() + offset.y / SCALE * angle.cos(),
+ 0.,
+ )
+ .with_rotation(Quat::from_euler(
+ EulerRot::ZYX,
+ angle + angle_offset,
+ 0.,
+ 0.,
+ ));
let module_id = {
let module = commands.spawn(PartBundle {
transform: TransformBundle::from(transform),