Skip to content

Instantly share code, notes, and snippets.

View fabriziospadaro's full-sized avatar
🎯
Focusing

Fabrizio Spadaro fabriziospadaro

🎯
Focusing
View GitHub Profile
@herohiralal
herohiralal / CurveController.cs
Created January 18, 2022 18:25
Add curvature to the rendering without changing simulation code.
using UnityEngine;
namespace AIEngineTest
{
public class CurveController : MonoBehaviour
{
private static CurveController s_Instance = null;
private const float k_StraightDistanceClamp = 50f;
private const float k_CurvatureClamp = 10f;