Jump to content

Recommended Posts

Posted

I created a simple cube sandbox :

You apply forces, torque,mass,gravity on a cube that is between walls.

 

Beware of the side forces playing with them you'll have the cube going throught walls sometimes laugh.png

 

Here are the keys :

 

 

A-Z

self.entity:AddForce

Q-Z

self.entity:AddTorque

E-R

self.entity:AddPointForce

R-T

self.entity:SetMass

Y-U

self.entity:SetGravityMode

 

Playing with that i think you'll have some great game ideas.

Specially enabling disabling gravity or mass on a moving object is great for ideas.

 

*************

 

1) You must create a Lua Project.

2) Download the map file and player script

Just attach Player script to the grey little cube on the scene and start playing

http://www.megafileupload.com/en/file/434335/Player-7z.html

Stop toying and make games

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...