Quantum 3 3.0.10

Public Member Functions | Protected Member Functions | List of all members
Quantum.Core.PhysicsSystem2D Class Reference

The Quantum core physics system. More...

Inheritance diagram for Quantum.Core.PhysicsSystem2D:
Quantum.SystemBase Quantum.Core.ICollisionCallbacks2D

Public Member Functions

void OnCollision2D (FrameBase f, CollisionInfo2D info)
 Raised when two non-trigger 2D colliders collide. Raised every frame while the collision lasts.
 
void OnCollisionEnter2D (FrameBase f, CollisionInfo2D info)
 Raised on the frame when two non-trigger 2D colliders start colliding.
 
void OnCollisionExit2D (FrameBase f, ExitInfo2D info)
 Raised on the first frame when two non-trigger 2D colliders are detected as no longer colliding.
 
override void OnInit (Frame f)
 Initializes the 2D physics system. More...
 
void OnTrigger2D (FrameBase f, TriggerInfo2D info)
 Raised when two 2D colliders collide if exactly one of them is a trigger collider. Raised every frame while the collision lasts.
 
void OnTriggerEnter2D (FrameBase f, TriggerInfo2D info)
 Raised on the first frame when two 2D colliders start colliding if exactly one of them is a trigger collider.
 
void OnTriggerExit2D (FrameBase f, ExitInfo2D info)
 Raised on the first frame when two 2D colliders are detected as no longer colliding if exactly one of them is a trigger collider.
 
- Public Member Functions inherited from Quantum.SystemBase
 SystemBase ()
 Constructor. More...
 
 SystemBase (params SystemBase[] children)
 Create a new instance of a system with children. More...
 
 SystemBase (string scheduleSample)
 Create a new instance and setting the sample name. More...
 
virtual void OnDisabled (Frame f)
 Is called when the system was disabled for example after Frame.SystemDisable(Type). More...
 
virtual void OnEnabled (Frame f)
 Is called when the system was enabled for example after calling Frame.SystemEnable<T>() or during QuantumGame.InitSystems(Photon.Deterministic.DeterministicFrame). More...
 
TaskHandle OnSchedule (Frame f, TaskHandle taskHandle)
 Creates the task graph for the system. More...
 

Protected Member Functions

override TaskHandle Schedule (Frame f, TaskHandle taskHandle)
 Create the 2D physics system update task graph. More...
 

Additional Inherited Members

- Properties inherited from Quantum.SystemBase
IEnumerable< SystemBaseChildSystems [get]
 The enumerable child systems. More...
 
IEnumerable< SystemBaseHierarchy [get]
 Creates the complete sub graph of child systems. More...
 
SystemBase ParentSystem [get]
 The parent system in the system hierarchy. More...
 
string ProfilerName [get]
 Profiler name. More...
 
Int32 RuntimeIndex [get]
 A unique index assigned to identify systems at runtime. More...
 
virtual Boolean StartEnabled [get, set]
 Set to true when the simulation should start with this system enabled. More...
 

Detailed Description

The Quantum core physics system.

Member Function Documentation

◆ OnInit()

override void Quantum.Core.PhysicsSystem2D.OnInit ( Frame  f)
inlinevirtual

Initializes the 2D physics system.

Parameters
fThe frame reference.

Reimplemented from Quantum.SystemBase.

◆ Schedule()

override TaskHandle Quantum.Core.PhysicsSystem2D.Schedule ( Frame  f,
TaskHandle  taskHandle 
)
inlineprotectedvirtual

Create the 2D physics system update task graph.

Parameters
fThe frame reference.
taskHandleThe initial task handle.
Returns
The updated task handle with the physics update graph.

Implements Quantum.SystemBase.