Skip to content

Instantly share code, notes, and snippets.

View Irondef's full-sized avatar

Irondef Irondef

View GitHub Profile
@MattRix
MattRix / PhysicsFollower.cs
Last active August 8, 2024 00:25
A thing you can use to make a rigidbody move towards a position reliably
using UnityEngine;
using System.Collections;
using System;
[RequireComponent (typeof(Rigidbody))]
public class PhysicsFollower : MonoBehaviour
{
public Transform target;
Rigidbody rb;