sidescroller-framework

SF Physics Manager API

The SFramework Physics Manager handles storing references all physics objects in a scene as well as handling collision detection and resolution for Physics objects. While most developers will not likely ever need this API, as it is mainly used under the hood in the Physics component, it is still available to use if there is ever a case that someone may need it.

Contents

SF Physics Manager

Accessors

SFPhysicsManager.physicsObjects

SFPhysicsManager:AddPhysicsObject

Adds the given GameObject with Physics component to the manager’s table of Physics objects

Arguments

SFPhysicsManager:RemovePhysicsObject

Removes the given GameObject from the manager’s table of Physics objects

Arguments

SFPhysicsManager:GetCollisionData

Returns a table with collision depth and normal for the two given objects or nil if no collision

Arguments

SFPhysicsManager:ResolveCollision

Resolves the collision between the two given objects with the given collision data

Arguments