SFramework has some functionality that is useful. Learn about these functions here.
SFramework’s namespace is SF
. All SFramework functions will be called with this namespace.
SF.physics
SF.physics.gravity
SF.physics.manager
Gets the current gravity value in SFramework in units per second
local myGravity = SF.physics.GetGravity()
Sets the current gravity value in SFramework in units per second. The default value is 1
g
- number
(required) the gravity value to set
SF.physics.setGravity(2)
Gets the instance of SF Physics Manager currently being used
local myPhysicsManager = SF.physics.getPhysicsManager()