You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.
Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.
` call this command to be able to use physics in our program
` turn sync rate on
sync rate 60
` make a box that will be our ground
make object box 1, 50, 1, 50
` load physics data
phy load rigid body static mesh 1,"test.blah"
` create a cube and place it just above the edge of the ground
make object cube 2, 5
position object 2, 0, 10, -26
` create a dynamic rigid body box to represent our cube
phy make rigid body dynamic box 2
` position the camera so we can see the cube and box
position camera 0, 10, -50
` and here’s our main loop
` update the physics
Login to post a reply