fix(bow): initial orientation wrong for 1 frame

This commit is contained in:
timokoesters 2019-09-28 20:07:13 +02:00
parent e404ea0d4f
commit df4c4bbd5d
No known key found for this signature in database
GPG Key ID: CD80BE9AAEE78097

View File

@ -210,7 +210,7 @@ impl Server {
.create_entity_synced()
.with(pos)
.with(vel)
.with(comp::Ori(Vec3::unit_y()))
.with(comp::Ori(vel.0.normalized()))
.with(body)
.with(projectile)
}