Files
drecon-unity/Assets/3_MarathonEnvs/Scripts/Ragdoll002/TerrainSetup.cs
2024-03-28 14:55:33 +00:00

21 lines
417 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TerrainSetup : MonoBehaviour
{
public Vector3 TerrainSize;
// Start is called before the first frame update
void Start()
{
var terrain = GetComponent<Terrain>();
terrain.terrainData.size = TerrainSize;
}
// Update is called once per frame
void Update()
{
}
}