ios - Changing the gravity pull on specific nodes with SpriteKit -


i'm trying make game nodes fall top of screen bottom, i've done using gravity. want move nodes left side right.

i wondering if change gravity pull on different nodes instead of them falling down screen gravity pull selected nodes left right.

i know can using nstimer , function wondering if gravity.

i have tried googling answer can't find answer applying 2 gravity pulls.

i don't think can have 2 distinct gravity forces same physics world.

however if want node "fall" right could

  1. apply acceleration (same gravity opposite direction) specific body (this cancel gravity pull)
  2. apply 1 more acceleration versus right specific node.

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -