Code Monkey home page Code Monkey logo

bullet's Introduction

bullet

author: Dunchen

2014/7/11

Bullet-engine-shatter-plugin

###Summary This is a bullet physics plugin, which adds the real time collision-and-shtter effect. It is very useful and impressive for its highly-effeciency compared with other professional special effect engine.

###What does it do This plugin doing its task in the sub-tick-callback during the stimulation of the bullet engine. It will check every collision point between the rigidbodies and it will split the original rigibody and apply the force to the resulting shtters.

###The creative points As we know, most of the shatter effects procided by the other engines are too time costing since they actually use many small nodes to represent the original rigidbody in order to get shatter effect. But this would make the question complicated since usually we don't want to spend too much time and effort on the construction of a wall, for example, in our FPS game desgin. But we want that wall in the game to be a little more real: it SHOULD collapse into shatters when we shoot RPG direct into the wall. In order to achieve this aim, I write this prototype code based on the bullet engine, which doesn't provide a way to realize that. I just first consider the situation of the world made of only box shapes rigidboies, which make the code much easier. My code does its task in the sub-tick-callback during the stimulation of the bullet engine. It will check every collision point between the bullets and rigidbodies (the blocks) and it will split the original rigibody and apply the force to the resulting shtters to make them move in the way of being crushed by a bullet.

###Where needs improvement I would to expand this prototype to include other collision shapes like sphere, compoundshape and triangle-mesh, but it was shown to be a very difficult task. In the next version, I would try to add the compound shape into the consideration.

###What's new In this new version, the rigidbodies which are connected to each other with constraint can be applied into this plugin.

//yeti comes down from the jokul~~ //but she never looks back

bullet's People

Contributors

zhuwenjia avatar

Stargazers

 avatar

Watchers

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