Class PhysicHandler
Represents an abstract class for handling physics interactions.
Inherited Members
Namespace: Genesis.Physics
Assembly: Genesis.dll
Syntax
public abstract class PhysicHandler
Constructors
PhysicHandler()
Initializes a new instance of the PhysicHandler class.
Declaration
public PhysicHandler()
Properties
Callbacks
Gets or sets the dictionary of physics callbacks.
Declaration
public Dictionary<object, PhysicHandlerEvent> Callbacks { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<object, PhysicHandlerEvent> |
Methods
ManageElement(PhysicsBehavior)
Manages physics interactions for a specific physics behavior.
Declaration
public virtual void ManageElement(PhysicsBehavior physicsBehavior)
Parameters
Type | Name | Description |
---|---|---|
PhysicsBehavior | physicsBehavior | The physics behavior to manage |
Process(Scene, Game)
Processes physics interactions for a given scene and game.
Declaration
public abstract void Process(Scene scene, Game game)
Parameters
Type | Name | Description |
---|---|---|
Scene | scene | The scene to process physics for |
Game | game | The game to process physics for |
RemoveElement(PhysicsBehavior)
Removes the specified physics behavior from the physics world.
Declaration
public abstract void RemoveElement(PhysicsBehavior physicsBehavior)
Parameters
Type | Name | Description |
---|---|---|
PhysicsBehavior | physicsBehavior | The physics behavior to be removed. |
Remarks
This abstract method should be implemented to remove the collision object associated with the provided physics behavior from the physics world.