mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
feat(bow): arrow spawn height
This commit is contained in:
parent
a01edbe370
commit
3078591060
@ -297,12 +297,16 @@ impl Server {
|
||||
dir,
|
||||
projectile,
|
||||
} => {
|
||||
let pos = state
|
||||
let mut pos = state
|
||||
.ecs()
|
||||
.read_storage::<comp::Pos>()
|
||||
.get(entity)
|
||||
.unwrap()
|
||||
.0;
|
||||
|
||||
// TODO: Player height
|
||||
pos.z += 1.2;
|
||||
|
||||
Self::create_projectile(
|
||||
state,
|
||||
comp::Pos(pos),
|
||||
|
Loading…
Reference in New Issue
Block a user