Sprite kit physics gravity on object -


I am creating a simple game using the Sprite Kit and Physics.

The problem is really very simple, for my knowledge, phantom kit physics allows to set gravity on the world, but I need to set up gravity on physics organizations so that a large / heavy body Affects everyone around it. From my life, I am not getting a facility to do this and before I can start custom physics programming in the game, I should know that anyone knows in a standard way to do this here. P>

Looking for you. You can create different types of fields, but it seems that what you want will be a radialGravityField .

You can find more information on the linked class reference.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -