Add Makefile and format rust core
This commit is contained in:
@ -38,7 +38,7 @@ impl ICharacterBody3D for PlayerServerNode {
|
||||
self.base_mut().set_velocity(new_velocity);
|
||||
}
|
||||
self.jumping = false;
|
||||
|
||||
|
||||
if self.base().is_on_floor() {
|
||||
let direction = self.base().get_transform().basis
|
||||
* Vector3::new(self.input_direction.x, 0.0, self.input_direction.y);
|
||||
@ -103,7 +103,11 @@ impl PlayerServerNode {
|
||||
Some(map) => map,
|
||||
None => return,
|
||||
};
|
||||
let args = &[casted_bullet_node.to_variant(), 10.to_variant(), 10.to_variant()];
|
||||
let args = &[
|
||||
casted_bullet_node.to_variant(),
|
||||
10.to_variant(),
|
||||
10.to_variant(),
|
||||
];
|
||||
map.call("spawn_bullet", args);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user