I have a question about how the angle in this function is supposed to .. function?
I usually end up setting all sorts of different numbers to get the angle of the box I desire. I've tried using 0.xxx values but these make no sense either. Also tried with radians to angle calculations.
Also setting the angle moves the shape to all sorts of weird places so what I always end up having to do is, do physicsDebugOn and retry until I find the angle I want, then move the offset of the shape until it's where I want it.
Practically:
sprite = createDummySprite()
setSpritePhysicsOn(sprite, 1)
setSpritePosition(sprite, 400, 200)
setSpriteShapeBox(sprite, 0, 0, 100, 10, 0)
addSpriteShapeBox(sprite, 0, 0, 100, 10, 90)
sprite2 = createDummySprite()
setSpritePhysicsOn(sprite2, 1)
setSpritePosition(sprite2, 400, 300)
setSpriteShapeBox(sprite2, 0, 0, 100, 10, 0)
addSpriteShapeBox(sprite2, 0, 0, 100, 10, radToDegrees(90))
^ Ends up looking like the screenshot provided, with the shapes in respective order.
My hovercraft is full of eels