Quantum 3 3.0.14

Public Member Functions | Public Attributes | List of all members
Quantum.Prototypes.PhysicsCollider3DPrototype Class Reference

Prototype of the PhysicsCollider3D Quantum component. More...

Inherits Quantum.ComponentPrototype< Quantum.PhysicsCollider3D >.

Public Member Functions

sealed override bool AddToEntity (FrameBase f, EntityRef entity, in PrototypeMaterializationContext context)
 Creates an instance of the PhysicsCollider3D component, materializes and adds it to the entity. More...
 
unsafe void Materialize (FrameBase frame, ref PhysicsCollider3D component)
 
void Materialize (FrameBase frame, ref Quantum.PhysicsCollider3D result, in PrototypeMaterializationContext context)
 Applies the prototype's fields to the actual component. More...
 

Public Attributes

bool IsTrigger = false
 Set to true to make the physics collider a trigger collider. More...
 
int Layer = 0
 The physics collider's layer. More...
 
AssetRef< PhysicsMaterialPhysicsMaterial
 The physics collider's physics material asset. More...
 
Shape3DConfig ShapeConfig
 The definition of the physics collider's shape. More...
 

Detailed Description

Prototype of the PhysicsCollider3D Quantum component.

Member Function Documentation

◆ AddToEntity()

sealed override bool Quantum.Prototypes.PhysicsCollider3DPrototype.AddToEntity ( FrameBase  f,
EntityRef  entity,
in PrototypeMaterializationContext  context 
)
inline

Creates an instance of the PhysicsCollider3D component, materializes and adds it to the entity.

Parameters
f
entity
context
Returns
Returns true if adding the component to the entity succeeds.

◆ Materialize()

void Quantum.Prototypes.PhysicsCollider3DPrototype.Materialize ( FrameBase  frame,
ref Quantum.PhysicsCollider3D  result,
in PrototypeMaterializationContext  context 
)
inline

Applies the prototype's fields to the actual component.

Member Data Documentation

◆ ShapeConfig

Shape3DConfig Quantum.Prototypes.PhysicsCollider3DPrototype.ShapeConfig

The definition of the physics collider's shape.

◆ Layer

int Quantum.Prototypes.PhysicsCollider3DPrototype.Layer = 0

The physics collider's layer.

◆ IsTrigger

bool Quantum.Prototypes.PhysicsCollider3DPrototype.IsTrigger = false

Set to true to make the physics collider a trigger collider.

◆ PhysicsMaterial

AssetRef<PhysicsMaterial> Quantum.Prototypes.PhysicsCollider3DPrototype.PhysicsMaterial

The physics collider's physics material asset.