how to make object fall with gravity

How can i change my objects gravity without having my player fall with it. I added

physicsWorld.gravity = CGVector(dx: 0, dy: 0)

on my players movement and affectedByGravity on both my object and player. If I change dy to -9.8, my object falls but along with my player

how to make object fall with gravity
 
 
Q