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
- apply acceleration (same gravity opposite direction) specific body (this cancel gravity pull)
- apply 1 more acceleration versus right specific node.
Comments
Post a Comment