Giter VIP home page Giter VIP logo

unity3d-physicsgun's Introduction

Unity3d Physics Gun Sample

The goal of this sample is to show an implementation of the "Physics Gun" behavior from Half-Life 2 / Garry's Mod / GMod.

Video about the creation of this repo, thoughts and reasons behind can be seen here.

alt text

Get started

"PhysicsGunInteractionBehavior.cs" is the script you are looking for. This is the script that does most of the actual logic, however, we encourage you to download the entire project and look at the "PhysicsGunSampleScene" as there are more to it than just the behavior.

Works with Unity v2020.2.2f1

Todo: "If somebody want to write a guide to get started, feel free to do a PR."

Originally the "GravityGun" script in this repo, is based on this script: https://pastebin.com/w1G8m3dH

Contribute

The point of creating this repo was to have a place where the Unity3d community could collaborate on this "Physics Gun"-script. So please optimize, add features, fix bugs and send a Pull-Request - I'll be happy to look at it :)

unity3d-physicsgun's People

Contributors

laumania avatar warmedxmints avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.