CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::ApplyForce Struct Referencefinal

#include <CeresEngine/Physics/Body.hpp>

Inheritance diagram for CeresEngine::ApplyForce:
CeresEngine::EntityAction< ApplyForce > CeresEngine::AbstractEntityAction

Public Member Functions

 ApplyForce (Vector3 force, Vector3 relativePosition=Vector3(0.0))
 Creates a new ApplyForce action.
 

Public Attributes

Vector3 force
 The force to be applied.
 
Vector3 relativePosition = Vector3(0.0)
 The relative position to apply the force at.
 

Additional Inherited Members

- Public Types inherited from CeresEngine::EntityAction< ApplyForce >
using ReturnType = void
 The type that must be returned by action handlers.
 
- Static Public Attributes inherited from CeresEngine::EntityAction< ApplyForce >
static const EntityActionID actionID
 This action type ID.
 

Constructor & Destructor Documentation

◆ ApplyForce()

CeresEngine::ApplyForce::ApplyForce ( Vector3  force,
Vector3  relativePosition = Vector3(0.0) 
)
explicit

Creates a new ApplyForce action.

Parameters
forceThe force to be applied.
relativePositionThe relative position to apply the force at.

Member Data Documentation

◆ force

Vector3 CeresEngine::ApplyForce::force

The force to be applied.

◆ relativePosition

Vector3 CeresEngine::ApplyForce::relativePosition = Vector3(0.0)

The relative position to apply the force at.


The documentation for this struct was generated from the following file: