is there a way to set several focus points of gravity, so that gravity, instead of pulling always to the left or something, pulls to the middle right, like on a planet in a space game? [import]uid: 147322 topic_id: 26399 reply_id: 326399[/import]
No. You would likely use a sensor that pulled the player in when they collided. [import]uid: 52491 topic_id: 26399 reply_id: 107130[/import]
so how would i do that? [import]uid: 147322 topic_id: 26399 reply_id: 107148[/import]
Which part? Adding the sensor or pulling in player? [import]uid: 52491 topic_id: 26399 reply_id: 107357[/import]
pulling in the player. [import]uid: 147322 topic_id: 26399 reply_id: 107499[/import]
making the sensor would just be making an object that when your player collided with it it would pull it in right? [import]uid: 147322 topic_id: 26399 reply_id: 107500[/import]
You’d use the isSensor property, then you’d apply force or set linear velocity to make the player move towards the center of the sensor.
Read the physics docs for a bunch of info on sensors
Peach [import]uid: 52491 topic_id: 26399 reply_id: 107938[/import]