mirror of
https://github.com/SK8-ENGINE/skate-3-rust-engine.git
synced 2026-10-26 19:47:44 +00:00
Add opt-in riding input and ground controller diagnostics
This commit is contained in:
1 parent
47327ce57c
commit
e4e413047b
2 files changed
+13
No files matched your search
@@ -115,5 +115,10 @@ impl PlayerControls {
|
||||
self.action_intents.insert(intent.name, intent.value);
|
||||
}
|
||||
self.ticks += 1;
|
||||
if self.ticks % 6 == 0 {
|
||||
bevy::log::debug!(target: "skate_game::riding_trace",
|
||||
tick = self.ticks, words = ?self.controller.words(),
|
||||
intents = ?self.intents, "RIDING_INPUT");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -99,6 +99,14 @@ impl GroundState {
|
||||
input,
|
||||
physical,
|
||||
)?;
|
||||
if p.frames_since_teleport_2584 % 6 == 0 {
|
||||
bevy::log::debug!(target: "skate_game::riding_trace",
|
||||
frame = p.frames_since_teleport_2584,
|
||||
speed = p.scalar_2612, wheels = p.wheel_count_2556,
|
||||
fields = ?frame.animation.fields,
|
||||
steering = ?self.steering, speed_model = ?self.speed,
|
||||
outcome = ?outcome, "RIDING_GROUND");
|
||||
}
|
||||
let normal = p.vectors_464_480_496_512_528[0].map(f32::from_bits);
|
||||
if let Some(delta) = motion::future_deck_displacement(
|
||||
board.forces(),
|
||||
|
||||
Reference in new issue
Block a user