Hi, how to make gravity change according to camera rotation? The object must always fall down relative to the camera, so world is static and i need just to rotate camera, which changes gravity of the object with attached rigidbody 2D to it.
@Xaverix rigidbody.addforce may be the thing you need… and use it multiplied by camera.rotation
void Update() {
Physics.gravity = -transform.up * 9.82f;
}
Place the script on your Camera.