0

I have a spritenode with a physics body that is affected by gravity and dynamic, however, when it hits things it rotates.

I am only using the physicsbody for the Y axis gravity, and nothing else. When it hits something horizontally, I don't want it to be affected by that thing..

How can I accomplish this?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Max Hudson
  • 9,961
  • 14
  • 57
  • 107

1 Answers1

3

Straight from the Sprite kit programming guide:

The allowsRotation property determines whether forces can impart angular velocity on the body.

DogCoffee
  • 19,820
  • 10
  • 87
  • 120