Skip to content

Commit

Permalink
Created gh-pages branch via GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
chandlerprall committed Apr 30, 2012
0 parents commit aa471ad
Show file tree
Hide file tree
Showing 9 changed files with 596 additions and 0 deletions.
Binary file added images/bg_hr.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/blacktocat.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon_download.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sprite_download.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 93 additions & 0 deletions index.html
@@ -0,0 +1,93 @@
<!DOCTYPE html>
<html>

<head>
<meta charset='utf-8' />
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<meta name="description" content="Physijs : Physics plugin for Three.js" />

<link rel="stylesheet" type="text/css" media="screen" href="stylesheets/stylesheet.css">

<title>Physijs</title>
</head>

<body>

<!-- HEADER -->
<div id="header_wrap" class="outer">
<header class="inner">
<a id="forkme_banner" href="https://github.com/chandlerprall/Physijs">Fork Me on GitHub</a>

<h1 id="project_title">Physijs</h1>
<h2 id="project_tagline">Physics plugin for Three.js</h2>

<section id="downloads">
<a class="zip_download_link" href="https://github.com/chandlerprall/Physijs/zipball/master">Download this project as a .zip file</a>
<a class="tar_download_link" href="https://github.com/chandlerprall/Physijs/tarball/master">Download this project as a tar.gz file</a>
</section>
</header>
</div>

<!-- MAIN CONTENT -->
<div id="main_content_wrap" class="outer">
<section id="main_content" class="inner">
<h1>Physijs</h1>

<h4>Physics plugin for <a href="https://github.com/mrdoob/three.js">three.js</a>
</h4>

<p>Physijs brings a very easy to use interface to the three.js framework. One of the reasons three.js is so popular is because it is so incredibly easy for graphics newbies to get into 3D programming. Physijs takes that philosophy to heart and makes physics simulations just as easy to run. In fact, there are just <a href="https://github.com/chandlerprall/Physijs/wiki/Basic-Setup">five easy steps</a> that must be taken to make a 3D scene come alive.</p>

<h4>How does Physijs work?</h4>

<p>Physijs is built on top of <a href="https://github.com/kripken/ammo.js/">ammo.js</a> (although there is also a <a href="https://github.com/chandlerprall/Physijs/tree/cannon">cannon.js branch</a>) and runs the physics simulation in a separate thread (via web worker) to avoid impacting in your application's performance and taking up your your 3D rendering time.</p>

<p>A lot of effort has been made to keep the style of code the same when using Physijs. Apart from <a href="https://github.com/chandlerprall/Physijs/wiki/Updating-an-object's-position-&amp;-rotation">updating an object's position</a>, all of the normal three.js conventions remain the same. If you are used to three.js, you already know how to use the Physijs plugin.</p>

<h4>Who is this for?</h4>

<p>You, hopefully. If you are familiar with <a href="https://github.com/mrdoob/three.js">three.js</a> and want to add physics to your scene, this is the plugin for you. No mucking about with shape definitions, keeping objects in their correct positions, or identifying collisions - simply use a few Physijs objects in place of three.js's and you'll automatically have a dynamic environment.</p>

<p>If you need (or want) a feature not already included then add it to the <a href="https://github.com/chandlerprall/Physijs/issues">issue tracker</a> or implement it yourself and send over a pull request.</p>

<h3>Examples</h3>

<p><a href="http://chandlerprall.github.com/Physijs/examples/body.html"><img src="http://chandlerprall.github.com/Physijs/examples/body.jpg" alt="rigid bodies"></a>
<a href="http://chandlerprall.github.com/Physijs/examples/collisions.html"><img src="http://chandlerprall.github.com/Physijs/examples/collisions.jpg" alt="collisions"></a>
<a href="http://chandlerprall.github.com/Physijs/examples/compound.html"><img src="http://chandlerprall.github.com/Physijs/examples/compound.jpg" alt="compound shapes"></a>
<a href="http://chandlerprall.github.com/Physijs/examples/shapes.html"><img src="http://chandlerprall.github.com/Physijs/examples/shapes.jpg" alt="all shapes"></a>
<a href="http://chandlerprall.github.com/Physijs/examples/jenga.html"><img src="http://chandlerprall.github.com/Physijs/examples/jenga.jpg" alt="jenga"></a></p>

<h3>Features</h3>

<ul>
<li>Support for <a href="https://github.com/chandlerprall/Physijs/wiki/Basic-Shapes">multiple object shapes</a>, including custom convex objects.</li>
<li>Material system provides simple control over friction and restitution ("bounciness")</li>
<li>Integrated collision detection and events</li>
<li>Compound objects using the hierarchy system in three.js</li>
<li>Rotations using either euler or quaternion systems - your preference</li>
<li>Built seamlessly on top of three.js to keep the same convention and coding style</li>
</ul><h3>In the Future</h3>

<ul>
<li>More (and better) optimizations</li>
<li>Constraint systems such as point-to-point and hinge.</li>
<li>Vehicle systems</li>
<li>Heightfield/heightmap shape</li>
<li>It would be awesome to have concave shape decomposition</li>
</ul>
</section>
</div>

<!-- FOOTER -->
<div id="footer_wrap" class="outer">
<footer class="inner">
<p class="copyright">Physijs maintained by <a href="https://github.com/chandlerprall">chandlerprall</a></p>
<p>Published with <a href="http://pages.github.com">GitHub Pages</a></p>
</footer>
</div>



</body>
</html>
1 change: 1 addition & 0 deletions javascripts/main.js
@@ -0,0 +1 @@
console.log('This would be the main JS file.');
1 change: 1 addition & 0 deletions params.json
@@ -0,0 +1 @@
{"name":"Physijs","body":"Physijs\r\n=======\r\n#### Physics plugin for [three.js](https://github.com/mrdoob/three.js)\r\n\r\nPhysijs brings a very easy to use interface to the three.js framework. One of the reasons three.js is so popular is because it is so incredibly easy for graphics newbies to get into 3D programming. Physijs takes that philosophy to heart and makes physics simulations just as easy to run. In fact, there are just [five easy steps](https://github.com/chandlerprall/Physijs/wiki/Basic-Setup) that must be taken to make a 3D scene come alive.\r\n\r\n#### How does Physijs work?\r\nPhysijs is built on top of [ammo.js](https://github.com/kripken/ammo.js/) (although there is also a [cannon.js branch](https://github.com/chandlerprall/Physijs/tree/cannon)) and runs the physics simulation in a separate thread (via web worker) to avoid impacting in your application's performance and taking up your your 3D rendering time.\r\n\r\nA lot of effort has been made to keep the style of code the same when using Physijs. Apart from [updating an object's position](https://github.com/chandlerprall/Physijs/wiki/Updating-an-object's-position-&-rotation), all of the normal three.js conventions remain the same. If you are used to three.js, you already know how to use the Physijs plugin.\r\n\r\n#### Who is this for?\r\nYou, hopefully. If you are familiar with [three.js](https://github.com/mrdoob/three.js) and want to add physics to your scene, this is the plugin for you. No mucking about with shape definitions, keeping objects in their correct positions, or identifying collisions - simply use a few Physijs objects in place of three.js's and you'll automatically have a dynamic environment.\r\n\r\nIf you need (or want) a feature not already included then add it to the [issue tracker](https://github.com/chandlerprall/Physijs/issues) or implement it yourself and send over a pull request.\r\n\r\n### Examples\r\n[![rigid bodies](http://chandlerprall.github.com/Physijs/examples/body.jpg)](http://chandlerprall.github.com/Physijs/examples/body.html)\r\n[![collisions](http://chandlerprall.github.com/Physijs/examples/collisions.jpg)](http://chandlerprall.github.com/Physijs/examples/collisions.html)\r\n[![compound shapes](http://chandlerprall.github.com/Physijs/examples/compound.jpg)](http://chandlerprall.github.com/Physijs/examples/compound.html)\r\n[![all shapes](http://chandlerprall.github.com/Physijs/examples/shapes.jpg)](http://chandlerprall.github.com/Physijs/examples/shapes.html)\r\n[![jenga](http://chandlerprall.github.com/Physijs/examples/jenga.jpg)](http://chandlerprall.github.com/Physijs/examples/jenga.html)\r\n\r\n### Features\r\n* Support for [multiple object shapes](https://github.com/chandlerprall/Physijs/wiki/Basic-Shapes), including custom convex objects.\r\n* Material system provides simple control over friction and restitution (\"bounciness\")\r\n* Integrated collision detection and events\r\n* Compound objects using the hierarchy system in three.js\r\n* Rotations using either euler or quaternion systems - your preference\r\n* Built seamlessly on top of three.js to keep the same convention and coding style\r\n\r\n### In the Future\r\n* More (and better) optimizations\r\n* Constraint systems such as point-to-point and hinge.\r\n* Vehicle systems\r\n* Heightfield/heightmap shape\r\n* It would be awesome to have concave shape decomposition","tagline":"Physics plugin for Three.js","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}
70 changes: 70 additions & 0 deletions stylesheets/pygment_trac.css
@@ -0,0 +1,70 @@
.highlight .hll { background-color: #ffffcc }
.highlight { background: #f0f3f3; }
.highlight .c { color: #0099FF; font-style: italic } /* Comment */
.highlight .err { color: #AA0000; background-color: #FFAAAA } /* Error */
.highlight .k { color: #006699; font-weight: bold } /* Keyword */
.highlight .o { color: #555555 } /* Operator */
.highlight .cm { color: #0099FF; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #009999 } /* Comment.Preproc */
.highlight .c1 { color: #0099FF; font-style: italic } /* Comment.Single */
.highlight .cs { color: #0099FF; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { background-color: #FFCCCC; border: 1px solid #CC0000 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #FF0000 } /* Generic.Error */
.highlight .gh { color: #003300; font-weight: bold } /* Generic.Heading */
.highlight .gi { background-color: #CCFFCC; border: 1px solid #00CC00 } /* Generic.Inserted */
.highlight .go { color: #AAAAAA } /* Generic.Output */
.highlight .gp { color: #000099; font-weight: bold } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #003300; font-weight: bold } /* Generic.Subheading */
.highlight .gt { color: #99CC66 } /* Generic.Traceback */
.highlight .kc { color: #006699; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #006699; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #006699; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #006699 } /* Keyword.Pseudo */
.highlight .kr { color: #006699; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #007788; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #FF6600 } /* Literal.Number */
.highlight .s { color: #CC3300 } /* Literal.String */
.highlight .na { color: #330099 } /* Name.Attribute */
.highlight .nb { color: #336666 } /* Name.Builtin */
.highlight .nc { color: #00AA88; font-weight: bold } /* Name.Class */
.highlight .no { color: #336600 } /* Name.Constant */
.highlight .nd { color: #9999FF } /* Name.Decorator */
.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
.highlight .ne { color: #CC0000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #CC00FF } /* Name.Function */
.highlight .nl { color: #9999FF } /* Name.Label */
.highlight .nn { color: #00CCFF; font-weight: bold } /* Name.Namespace */
.highlight .nt { color: #330099; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #003333 } /* Name.Variable */
.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #FF6600 } /* Literal.Number.Float */
.highlight .mh { color: #FF6600 } /* Literal.Number.Hex */
.highlight .mi { color: #FF6600 } /* Literal.Number.Integer */
.highlight .mo { color: #FF6600 } /* Literal.Number.Oct */
.highlight .sb { color: #CC3300 } /* Literal.String.Backtick */
.highlight .sc { color: #CC3300 } /* Literal.String.Char */
.highlight .sd { color: #CC3300; font-style: italic } /* Literal.String.Doc */
.highlight .s2 { color: #CC3300 } /* Literal.String.Double */
.highlight .se { color: #CC3300; font-weight: bold } /* Literal.String.Escape */
.highlight .sh { color: #CC3300 } /* Literal.String.Heredoc */
.highlight .si { color: #AA0000 } /* Literal.String.Interpol */
.highlight .sx { color: #CC3300 } /* Literal.String.Other */
.highlight .sr { color: #33AAAA } /* Literal.String.Regex */
.highlight .s1 { color: #CC3300 } /* Literal.String.Single */
.highlight .ss { color: #FFCC33 } /* Literal.String.Symbol */
.highlight .bp { color: #336666 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #003333 } /* Name.Variable.Class */
.highlight .vg { color: #003333 } /* Name.Variable.Global */
.highlight .vi { color: #003333 } /* Name.Variable.Instance */
.highlight .il { color: #FF6600 } /* Literal.Number.Integer.Long */

.type-csharp .highlight .k { color: #0000FF }
.type-csharp .highlight .kt { color: #0000FF }
.type-csharp .highlight .nf { color: #000000; font-weight: normal }
.type-csharp .highlight .nc { color: #2B91AF }
.type-csharp .highlight .nn { color: #000000 }
.type-csharp .highlight .s { color: #A31515 }
.type-csharp .highlight .sc { color: #A31515 }

0 comments on commit aa471ad

Please sign in to comment.