Turbulenz is a modular 3D and 2D game framework for making HTML5 powered games for browsers, desktops and mobile devices.
4.57k
stars
513
forks
source link
physicsDevice.createConvexHullShape creates incorrect hull shape #38
Open
davidfooks opened 10 years ago
Create a convex hull with the following points
Note that the resulting convex hull consists of only one triangle (in the simulation and rendering).
You can test this by replacing these points in the physics_collisionmesh sample: https://github.com/turbulenz/turbulenz_engine/blob/master/samples/tsscripts/templates/physics_collisionmesh.ts#L661
However, if I move the points by some small random number
The convex hull renders and behaves as expected.
If there are some expected properties of the points array can you please document them here: http://docs.turbulenz.com/jslibrary_api/physicsdevice_api.html#createconvexhullshape