debug print instructions
This commit is contained in:
parent
63ce06f069
commit
ca141c800c
@ -1,5 +1,6 @@
|
|||||||
use crate::{instruction::{InstructionEmitter, InstructionConsumer, TimedInstruction}, zeroes::zeroes2};
|
use crate::{instruction::{InstructionEmitter, InstructionConsumer, TimedInstruction}, zeroes::zeroes2};
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub enum PhysicsInstruction {
|
pub enum PhysicsInstruction {
|
||||||
CollisionStart(RelativeCollision),
|
CollisionStart(RelativeCollision),
|
||||||
CollisionEnd(RelativeCollision),
|
CollisionEnd(RelativeCollision),
|
||||||
@ -112,7 +113,7 @@ pub struct PhysicsState {
|
|||||||
pub jump_trying: bool,
|
pub jump_trying: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone,Copy,Hash,Eq,PartialEq)]
|
#[derive(Debug,Clone,Copy,Hash,Eq,PartialEq)]
|
||||||
pub enum AabbFace{
|
pub enum AabbFace{
|
||||||
Right,//+X
|
Right,//+X
|
||||||
Top,
|
Top,
|
||||||
@ -258,7 +259,7 @@ impl Model {
|
|||||||
|
|
||||||
//need non-face (full model) variant for CanCollide false objects
|
//need non-face (full model) variant for CanCollide false objects
|
||||||
//OR have a separate list from contacts for model intersection
|
//OR have a separate list from contacts for model intersection
|
||||||
#[derive(Clone,Eq,Hash,PartialEq)]
|
#[derive(Debug,Clone,Eq,Hash,PartialEq)]
|
||||||
pub struct RelativeCollision {
|
pub struct RelativeCollision {
|
||||||
face: TreyMeshFace,//just an id
|
face: TreyMeshFace,//just an id
|
||||||
model: u32,//using id to avoid lifetimes
|
model: u32,//using id to avoid lifetimes
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#[derive(Debug)]
|
||||||
pub struct TimedInstruction<I> {
|
pub struct TimedInstruction<I> {
|
||||||
pub time: crate::body::TIME,
|
pub time: crate::body::TIME,
|
||||||
pub instruction: I,
|
pub instruction: I,
|
||||||
|
Loading…
Reference in New Issue
Block a user