Skip to content

Instantly share code, notes, and snippets.

@Abban
Abban / SplineFollower.cs
Created April 13, 2025 14:47 — forked from Eraile/SplineFollower.cs
Spline Follower for Unity, based on Unity's official Spline package
/*
* Spline Follower for Unity, based on Unity's official Spline package
*
* Developed by Pierre Mercy
* Assisted by OpenAI's GPT-4 Language Model (ChatGPT)
*
* This script allows an object to follow a spline path in Unity.
* It includes various features like speed control, time-based motion, loop, ping pong, and ease in and out functionality.
*
* The script was developed using Unity 2022 and the Splines 2.3.0 package.
<?php
// http://www.leofs.org/docs/s3_client.html
// i used composer with the following composer.json file and then called composer install
// {"require":{"aws/aws-sdk-php": "2.*"}}
require "vendor/autoload.php";
use Aws\Common\Enum\Region;
use Aws\S3\S3Client;
// Use absolute URLs to navigate to anything not in your Router.
// Only need this for pushState enabled browsers
if (Backbone.history && Backbone.history._hasPushState) {
// Use delegation to avoid initial DOM selection and allow all matching elements to bubble
$(document).delegate("a", "click", function(evt) {
// Get the anchor href and protcol
var href = $(this).attr("href");
var protocol = this.protocol + "//";