Komodo Engine
C PROJECT_LOGO=
|
Class defining kinematic bodies. More...
Public Member Functions | |
KinematicBodyComponent (IPhysicsShape shape) | |
override void | Initialize () |
Initializes a KinematicBodyComponent. More... | |
void | Move (Vector3 movement) |
Moves the body in the direction of the movement by its magnitude. More... | |
Public Member Functions inherited from Komodo.Core.ECS.Components.RigidBodyComponent | |
override void | Initialize () |
Initializes a RigidBodyComponent. 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) | |
Class defining kinematic bodies.
|
virtual |
Initializes a KinematicBodyComponent.
Reimplemented from Komodo.Core.ECS.Components.PhysicsComponent.
void Komodo.Core.ECS.Components.KinematicBodyComponent.Move | ( | Vector3 | movement | ) |
Moves the body in the direction of the movement by its magnitude.
Movement will later be scaled by Microsoft.Xna.Framework.GameTime.
movement | Direction and magnitude of the movement. |