Giter Site home page Giter Site logo

warmedxmints / unity3d-physicsgun Goto Github PK

View Code? Open in Web Editor NEW

This project forked from laumania/unity3d-physicsgun

1.0 0.0 0.0 174.09 MB

Unity3d sample implementation of a Half-life 2 / Garry's mod Physics Gun

License: MIT License

C# 72.90% GLSL 1.41% ShaderLab 22.71% HLSL 2.97%

unity3d-physicsgun's Introduction

Unity3d Physics Gun Sample

The goal of this sample is to be an implementation of a "Physics Gun", that mimics the exact behavior as the Physics Gun in Half-Life 2 / Garry's Mod.

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

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".

Todo: Write guide

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

Stargazers

Cloud Worm 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.