diff options
author | santiagopf <punto@Ariels-Mac-mini.local> | 2015-12-14 10:58:26 -0300 |
---|---|---|
committer | santiagopf <punto@Ariels-Mac-mini.local> | 2015-12-14 10:58:26 -0300 |
commit | a9795d582665598decd4e73e1d879c83ce28a44b (patch) | |
tree | 777a3da33fed3d6906704680e01bd87f97eba113 /doc/examples/physics/script/test_fall.sq | |
parent | c8077de71475c174aa14fd045a2cddfc28de2468 (diff) | |
parent | bfaa179e7088d9d6f4cf289e1915eec12c6b3b2a (diff) |
Merge branch 'master' of https://github.com/godotengine/godot
Diffstat (limited to 'doc/examples/physics/script/test_fall.sq')
-rw-r--r-- | doc/examples/physics/script/test_fall.sq | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/doc/examples/physics/script/test_fall.sq b/doc/examples/physics/script/test_fall.sq deleted file mode 100644 index 79526da8b4..0000000000 --- a/doc/examples/physics/script/test_fall.sq +++ /dev/null @@ -1,42 +0,0 @@ - -include("test_base.sq") - -class TestFall extends PhysicsTestBase { - - - fall_elements=10 - - function init_internal() { - - for (local i=0;i<10;i++) { - - local shape_idx=[ - PhysicsServer.SHAPE_SPHERE, - PhysicsServer.SHAPE_BOX, - PhysicsServer.SHAPE_CAPSULE, - PhysicsServer.SHAPE_CYLINDER, - PhysicsServer.SHAPE_CONVEX_POLYGON - ]; - - local stype=shape_idx[i%5]; -// stype=PhysicsServer.SHAPE_SPHERE; - - local t=Transform() - t.set_origin(Vector3(-0.7+0.0*i,3.5+4.1*i,0)) - t.rotate_basis(Vector3(1,0,0),Math.PI/4*i) - - local b = create_body(stype,PhysicsServer.BODY_MODE_RIGID,t); - - } - - create_static_plane( Plane( Vector3(0,1,0), -1) ); - - } - - constructor() { - PhysicsTestBase.constructor() - } -} - - -return TestFall |