Check block distance
This commit is contained in:
1 parent
268fc19b7b
commit
9d6c8dc524
7 files changed
+107
-14
No files matched your search
@@ -16,10 +16,12 @@ pub struct Entity {
|
||||
pub yaw: f32,
|
||||
pub head_yaw: f32,
|
||||
pub pitch: f32,
|
||||
// TODO: Change this in diffrent poses
|
||||
pub standing_eye_height: f32,
|
||||
}
|
||||
|
||||
impl Entity {
|
||||
pub fn new(entity_id: EntityId, entity_type: EntityType) -> Self {
|
||||
pub fn new(entity_id: EntityId, entity_type: EntityType, standing_eye_height: f32) -> Self {
|
||||
Self {
|
||||
entity_id,
|
||||
entity_type,
|
||||
@@ -32,6 +34,7 @@ impl Entity {
|
||||
yaw: 0.0,
|
||||
head_yaw: 0.0,
|
||||
pitch: 0.0,
|
||||
standing_eye_height,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user