Updated World vastly. No longer extends p2.World due to a few vars we can't alias cleanly, adds in lots of new helper methods.

Ready for Materials and Constraints.
InversePointProxy is for aliasing a p2 typed array when the values need reversing before applying (gravity for example).
This commit is contained in:
photonstorm
2014-02-18 15:16:26 +00:00
parent 335684ac57
commit 3d0b5bde75
6 changed files with 790 additions and 233 deletions
+2
View File
@@ -181,8 +181,10 @@
<script src="$path/src/physics/World.js"></script>
<script src="$path/src/physics/PointProxy.js"></script>
<script src="$path/src/physics/InversePointProxy.js"></script>
<script src="$path/src/physics/Body.js"></script>
<script src="$path/src/physics/Spring.js"></script>
<script src="$path/src/physics/Material.js"></script>
<script src="$path/src/particles/Particles.js"></script>
<script src="$path/src/particles/arcade/ArcadeParticles.js"></script>