diff --git a/assets/maps/map1.map b/assets/maps/map1.map index ae39e1d..a5bbd7e 100644 --- a/assets/maps/map1.map +++ b/assets/maps/map1.map @@ -783,7 +783,7 @@ // entity 1 { "classname" "spawn_point" -"origin" "104 216 -248" +"origin" "168 216 -248" } // entity 2 { diff --git a/assets/models/spawn.glb b/assets/models/spawn.glb index 156bb78..f25ca89 100644 Binary files a/assets/models/spawn.glb and b/assets/models/spawn.glb differ diff --git a/src/tb_entities.rs b/src/tb_entities.rs index 673551a..1354748 100644 --- a/src/tb_entities.rs +++ b/src/tb_entities.rs @@ -22,23 +22,13 @@ impl SpawnPoint { return; }; - let this_transform = world - .get_entity(entity) - .unwrap() - .get::() - .unwrap(); - - let mut this_transform = *this_transform; - this_transform.translation += Vec3::new(0., -0.3, 0.); - let mesh = assets.mesh_spawn.clone(); world.commands().entity(entity).insert(( - this_transform, Name::new("spawn"), SceneRoot(mesh), RigidBody::Static, - ColliderConstructorHierarchy::new(ColliderConstructor::TrimeshFromMesh), + ColliderConstructorHierarchy::new(ColliderConstructor::ConvexHullFromMesh), )); } }