A SKFieldNode applies physics effects to physics bodies within a specific part of a Sprite Kit scene.
Questions tagged [skfieldnode]
17 questions
0
votes
1 answer
SpriteKit/SKPhysics radialGravityField of same category always attracting each others?
Running into an issue trying to use the radial gravity fields in SpriteKit
I don't want objects of same kind (as define by categoryBitMask to attract each others)
Here's how I do it :
struct PhyscisCategory {
static let None : UInt32 = 0
…

Xav
- 270
- 3
- 13
0
votes
0 answers
How to calculate final force vector for the SKSpriteNode
Good afternoon, everybody!
I am creating space game which has an effect similar to black hole's gravitational effect. Wherever the spaceship is going, the black hole will attract it, summing up all the vectors together.
I know SKFieldNode has a…

Beraliv
- 518
- 7
- 20