mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-09 20:08:57 +03:00
Added bound to recast config
This commit is contained in:
@@ -58,8 +58,8 @@ namespace Nuake {
|
||||
currentVertexOffset = std::size(vertices);
|
||||
}
|
||||
|
||||
float bmin[3] = { -100.0f, -100.0f, -100.0f };
|
||||
float bmax[3] = { 100.0f, 100.0f, 100.0f };
|
||||
float bmin[3] = { -config.Bound.x, -config.Bound.y, -config.Bound.z };
|
||||
float bmax[3] = { config.Bound.x, config.Bound.y, config.Bound.z };
|
||||
rcConfig recastConfig;
|
||||
recastConfig.cs = config.CellSize;
|
||||
recastConfig.ch = config.CellHeight;
|
||||
|
||||
@@ -6,6 +6,7 @@ namespace Nuake {
|
||||
|
||||
RecastConfig::RecastConfig(const NavMeshVolumeComponent& component)
|
||||
{
|
||||
Bound = component.VolumeSize;
|
||||
CellSize = component.CellSize;
|
||||
CellHeight = component.CellHeight;
|
||||
TileSize = component.TileSize;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
#include "src/Core/Maths.h"
|
||||
|
||||
namespace Nuake {
|
||||
|
||||
@@ -7,6 +8,7 @@ namespace Nuake {
|
||||
class RecastConfig
|
||||
{
|
||||
public:
|
||||
Vector3 Bound = Vector3(100, 100, 100);
|
||||
float CellSize = 0.2f;
|
||||
float CellHeight = 0.2f;
|
||||
float TileSize = 10.0f;
|
||||
|
||||
Reference in New Issue
Block a user