Browse Search Popular Register Upload Rules User list Login:
Search:
Gravity Swap Arrows

Image:
screenshot of the scene

Author: alasmyfoe

Group: Default

Filesize: 13.03 kB

Date added: 2017-05-07

Rating: 5

Downloads: 292

Views: 197

Comments: 1

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

:D
Please log in to rate this scene
edit
Similar scenes
Title: Gravity Switchin
Rating: 5.625
Filesize: 5.69 kB
Downloads: 558
Comments: 0
Ratings: 2
Date added: 2013/12/12 02:51:16
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: swap game
Rating: 6.25
Filesize: 80.41 kB
Downloads: 328
Comments: 5
Ratings: 4
Date added: 2008/10/20 17:43:34
Made with: Phun
Rating: rated 6.3
download
Title: Gravity Control
Rating: 5
Filesize: 41.55 kB
Downloads: 236
Comments: 0
Ratings: 1
Date added: 2011/06/26 12:33:51
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Gravity drawing
Rating: 5
Filesize: 6.07 kB
Downloads: 176
Comments: 0
Ratings: 1
Date added: 2018/08/19 23:46:46
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Gravity thingy
Rating: 5
Filesize: 51.84 kB
Downloads: 438
Comments: 0
Ratings: 1
Date added: 2021/07/25 21:31:36
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Gravity Room
Rating: 5
Filesize: 32.96 kB
Downloads: 149
Comments: 0
Ratings: 1
Date added: 2016/01/16 23:11:56
Made with: Algodoo v2.1.0
Rating: rated 5
download
You shouldnt use sim.gravity to change objects gravity direction. Instead, change their poststep to apply artificial accelleration to them (I am using eval for inserting values):
eval("
e.other.poststep = (e)=>{
vel = vel + [0,sim.gravitystrength]/sim.frequency + [Math.cos("+GRAVITYANGLE+"),Math.sin("+GRAVITYANGLE+")]*sim.gravitystrength/sim.frequency
}
")
Replace Gravityangle as the angle of the box with the arrow(you may need to adjust it afterwards) and there you go. every object that collides with the box will have its poststep overwritten to fall in that specific direction until it collides again.