SetPhysicsGravity

Description

Sets the gravity vector for all sprites using physics. The x and y values will be scaled into physics space so will only represent meters per second squared when scale = 1.0, in world space the values represent pixels per second squared. For example in the default scale of 0.2, a SetPhysicsGravity value of 0,50 would represent 10 meters per second squared. Gravity is a constant acceleration applied to all physics objects equally, regardless of mass. Whereas a force applies an acceleration proportional to the objects mass. To counteract gravity with a force will require accounting for mass.

Definition

SetPhysicsGravity( x, y )

Parameters