I would like to change the scale of the state object of the rigidbody2d inside func integrateforces(state):
How would you do that?
I want to flip my rigidbody on y axis.
I tried this but it is not perfect.
state.transform = state.transform.scaled(Vector2(-1,1))
Using the scale changes the thing only for 1 frame. It seems something overwrites my changes.