Former-commit-id: 98480aa29c882b0bf92364b39a8284355647956b
This commit is contained in:
timokoesters 2019-05-19 17:48:56 +02:00
parent 8af3ca5317
commit b26f00ddfb

View File

@ -149,6 +149,7 @@ impl Server {
let spawn_point = state.ecs().read_resource::<SpawnPoint>().0;
state.write_component(entity, comp::Actor::Character { name, body });
state.write_component(entity, comp::Stats::default());
state.write_component(entity, comp::phys::Pos(spawn_point));
state.write_component(entity, comp::phys::Vel(Vec3::zero()));
state.write_component(entity, comp::phys::Dir(Vec3::unit_y()));