Komodo Engine
C PROJECT_LOGO=
Komodo.Core.ECS.Components.RigidBodyComponent Class Reference

Abstract class defining all rigid bodies. More...

Inheritance diagram for Komodo.Core.ECS.Components.RigidBodyComponent:
Komodo.Core.ECS.Components.PhysicsComponent Komodo.Core.ECS.Components.Component Komodo.Core.ECS.Components.DynamicBodyComponent Komodo.Core.ECS.Components.KinematicBodyComponent Komodo.Core.ECS.Components.StaticBodyComponent Komodo.Core.ECS.Components.TriggerBodyComponent

Public Member Functions

override void Initialize ()
 Initializes a RigidBodyComponent. More...
 

Properties

Vector3 AngularVelocity [get, set]
 Rotational velocity. More...
 
Vector3 Force [get, set]
 Current force applied to the RigidBodyComponent. More...
 
Vector3 LinearVelocity [get, set]
 Directional velocity. More...
 
PhysicsMaterial Material [get, set]
 Material defining the physical parameters of the RigidBodyComponent. More...
 
IPhysicsShape Shape [get, set]
 Shape of the RigidBodyComponent. More...
 
Vector3 Torque [get, set]
 Current torque applied to the RigidBodyComponent. More...
 
- Properties inherited from Komodo.Core.ECS.Components.PhysicsComponent
Dictionary< Guid, CollisionCollisions [get]
 
- Properties inherited from Komodo.Core.ECS.Components.Component
GameGame [get]
 Each Component maintains a reference to the Komodo.Core.Game instance. More...
 
Guid ID [get]
 Unique identifier for the Component. More...
 
bool IsEnabled [get, set]
 Enabled Components are managed by their corresponding Komodo.Core.ECS.Systems.ISystem, otherwise the Component is ignored. More...
 
bool IsInitialized [get, set]
 Uninitialized Components are initialized by their corresponding Komodo.Core.ECS.Systems.ISystem, otherwise the Component is initialized on the next Komodo.Core.ECS.Systems.ISystem.Initialize, Komodo.Core.ECS.Systems.ISystem.PreUpdate, or Komodo.Core.ECS.Systems.ISystem.PostUpdate methods. More...
 
Entity Parent [get, set]
 Each Component belongs to a Komodo.Core.ECS.Entities.Entity and maintains a reference to the parent Komodo.Core.ECS.Entities.Entity. More...
 
Vector3 Position [get, set]
 Each Component has a position relative to their Parent. More...
 
Vector3?? WorldPosition [get]
 The sum of Position and the Parent's Komodo.Core.ECS.Entities.Entity.Position, representing the Component's position in world space. More...
 
Vector3?? Rotation [get, set]
 Derived from the Parent's Komodo.Core.ECS.Entities.Entity.Rotation. More...
 
Matrix?? RotationMatrix [get]
 Derived from the Parent's Komodo.Core.ECS.Entities.Entity.RotationMatrix. More...
 
Quaternion?? RotationQuaternion [get]
 Derived from the Parent's Komodo.Core.ECS.Entities.Entity.RotationQuaternion. More...
 
Vector3?? Scale [get, set]
 Derived from the Parent's Komodo.Core.ECS.Entities.Entity.Scale. More...
 

Additional Inherited Members

- Public Attributes inherited from Komodo.Core.ECS.Components.PhysicsComponent
PhysicsSystem PhysicsSystem => Parent?.PhysicsSystem
 
- Protected Member Functions inherited from Komodo.Core.ECS.Components.Component
 Component (bool isEnabled=true, Entity parent=null)
 

Detailed Description

Abstract class defining all rigid bodies.

Member Function Documentation

◆ Initialize()

override void Komodo.Core.ECS.Components.RigidBodyComponent.Initialize ( )
virtual

Property Documentation

◆ AngularVelocity

Vector3 Komodo.Core.ECS.Components.RigidBodyComponent.AngularVelocity
getset

Rotational velocity.

◆ Force

Vector3 Komodo.Core.ECS.Components.RigidBodyComponent.Force
getset

Current force applied to the RigidBodyComponent.

◆ LinearVelocity

Vector3 Komodo.Core.ECS.Components.RigidBodyComponent.LinearVelocity
getset

Directional velocity.

◆ Material

PhysicsMaterial Komodo.Core.ECS.Components.RigidBodyComponent.Material
getset

Material defining the physical parameters of the RigidBodyComponent.

◆ Shape

IPhysicsShape Komodo.Core.ECS.Components.RigidBodyComponent.Shape
getset

Shape of the RigidBodyComponent.

◆ Torque

Vector3 Komodo.Core.ECS.Components.RigidBodyComponent.Torque
getset

Current torque applied to the RigidBodyComponent.