Skip to content

Instantly share code, notes, and snippets.

View codemaker2015's full-sized avatar
:octocat:
Designing, Developing and Deploying

Vishnu Sivan codemaker2015

:octocat:
Designing, Developing and Deploying
View GitHub Profile
@jakevsrobots
jakevsrobots / PickUpObject.cs
Last active July 10, 2021 00:13
Script for picking up objects in Unity.
using UnityEngine;
using System.Collections;
public class PickUpObject : MonoBehaviour {
public Transform player;
public float throwForce = 10;
bool hasPlayer = false;
bool beingCarried = false;
void OnTriggerEnter(Collider other)