feat(gameplay): add starting base module and refine galaxy/character creation systems
Co-Authored-By: Oz <oz-agent@warp.dev>
This commit is contained in:
@@ -35,10 +35,7 @@ impl Default for Orbit {
|
||||
|
||||
/// Advance each Orbit's angle and recompute local translation.
|
||||
/// The orbit center is the parent entity (via Bevy's parent-child hierarchy).
|
||||
pub fn update_orbits(
|
||||
mut query: Query<(&mut Orbit, &mut Transform)>,
|
||||
time: Res<Time>,
|
||||
) {
|
||||
pub fn update_orbits(mut query: Query<(&mut Orbit, &mut Transform)>, time: Res<Time>) {
|
||||
let dt = time.delta_secs();
|
||||
for (mut orbit, mut transform) in &mut query {
|
||||
orbit.angle += orbit.angular_velocity * dt;
|
||||
|
||||
Reference in New Issue
Block a user