mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
* Adjustment: Initial CMake reworking.
This commit is contained in:
parent
516163fd5d
commit
d7cdf54661
5394 changed files with 2615532 additions and 8711 deletions
20
Engine/lib/bullet/data/init_urdf.lua
Normal file
20
Engine/lib/bullet/data/init_urdf.lua
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
-- Very basic Lua script to create some Bullet objects.
|
||||
-- See also Demos3/AllBullet2Demos using Demos3/bullet2/LuaDemo
|
||||
|
||||
--right now we cannot interleave adding instances of different shapes, they have to be added in-order
|
||||
--hence the two loops. this will be fixed soon
|
||||
|
||||
world = createDefaultDynamicsWorld()
|
||||
|
||||
cubeshape = createCubeShape(world, 30,30,1)
|
||||
pos={0,0,-3.0}
|
||||
orn = {0,0,0,1}
|
||||
mass = 0
|
||||
body = createRigidBody(world,cubeshape,mass,pos,orn)
|
||||
|
||||
pos={0,10,0}
|
||||
orn = {0,0,0,1}
|
||||
mb = loadMultiBodyFromUrdf(world,"r2d2.urdf", pos, orn);
|
||||
pos={2,2,0}
|
||||
orn = {0,0,0,1}
|
||||
mb = loadMultiBodyFromUrdf(world,"r2d2.urdf", pos, orn);
|
||||
Loading…
Add table
Add a link
Reference in a new issue