Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

gravity in center of the screen?
Started by Mcreator83 Nov 12 2010 09:38 AM

2 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Mcreator83

[GLOBAL: userInfoPane.html]
Mcreator83
  • Observer

  • 6 posts
  • Guests

is it possible to make it so that spawned object gravitate too the center of the screen?
uid: 10351 topic_id: 3603 reply_id: 303603


[TOPIC: post.html]
#2

finnk

[GLOBAL: userInfoPane.html]
finnk
  • Contributor

  • 149 posts
  • Corona SDK

Yes
uid: 11024 topic_id: 3603 reply_id: 10938


[TOPIC: post.html]
#3

Mcreator83

[GLOBAL: userInfoPane.html]
Mcreator83
  • Observer

  • 6 posts
  • Guests

ok but how?

local physics = require("physics")
physics.start()
physics.setGravity( 0, 0 )

and then what?
uid: 10351 topic_id: 3603 reply_id: 11064



[topic_controls]
[/topic_controls]