fix spawn

This commit is contained in:
Quaternions 2023-10-24 21:05:07 -07:00
parent 2116621672
commit f14b30138b

View File

@ -183,6 +183,7 @@ impl RunContextSetup{
let mut physics=crate::physics::PhysicsState::default(); let mut physics=crate::physics::PhysicsState::default();
physics.load_user_settings(&user_settings); physics.load_user_settings(&user_settings);
physics.generate_models(&indexed_model_instances); physics.generate_models(&indexed_model_instances);
physics.spawn(indexed_model_instances.spawn_point);
let mut graphics=crate::graphics::GraphicsState::new(&context.device,&context.queue,&context.config); let mut graphics=crate::graphics::GraphicsState::new(&context.device,&context.queue,&context.config);
graphics.load_user_settings(&user_settings); graphics.load_user_settings(&user_settings);