Skip to content

Commit

Permalink
[game] made the forest terrain more flat so that the car can drive ar…
Browse files Browse the repository at this point in the history
…ound easier
  • Loading branch information
PanosK92 committed Dec 2, 2024
1 parent 4c6c956 commit 49f5db3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions runtime/Game/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ namespace Spartan
void create_forest_car()
{
create_sun(LightIntensity::sky_sunlight_morning_evening);
create_camera(Vector3(-205.1f, 10.5922f, 153.6538f), Vector3(9.4095f, 28.6348f, 0.0f));
create_car(Vector3(-198.0397f, 4.0f, 161.3321f));
create_camera(Vector3(-212.0840f, 5.2584f, 285.4062f), Vector3(4.0149f, 154.4289f, 0.0f));
create_car(Vector3(-208.1031f, 4.5, 271.7055f));

// mood adjustment
m_default_light_directional->GetComponent<Light>()->SetTemperature(2300.0f);
Expand Down
3 changes: 1 addition & 2 deletions runtime/Physics/PhysicsDebugDraw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//================================
#include "pch.h"
#include "PhysicsDebugDraw.h"
#include "BulletPhysicsHelper.h"
#include "../Rendering/Renderer.h"
//================================

Expand All @@ -40,7 +39,7 @@ namespace Spartan
PhysicsDebugDraw::PhysicsDebugDraw()
{
debug_mode =
DBG_DrawFrames | // axes of the coordinate frames
DBG_DrawFrames | // axes of the coordinate frames
DBG_DrawWireframe | // shapes
DBG_DrawContactPoints |
DBG_DrawConstraints |
Expand Down
4 changes: 2 additions & 2 deletions runtime/World/Components/Terrain.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ namespace Spartan
void UpdateMesh(const uint32_t tile_index);
void Clear();

float m_min_y = -20.0f; // everything below 0.0 is assumed to be below sea level
float m_max_y = 100.0f;
float m_min_y = -5.0f; // everything below 0.0 is assumed to be below sea level
float m_max_y = 50.0f;
float m_vertex_density = 1.0f;
std::atomic<bool> m_is_generating = false;
uint32_t m_height_samples = 0;
Expand Down

0 comments on commit 49f5db3

Please sign in to comment.