37 #ifndef _ForceField_H__ 38 #define _ForceField_H__ 92 void registerVariables();
93 virtual void tick(
float dt)
override;
101 { this->velocity_ = vel; }
107 {
return this->velocity_; }
114 { this->radius_ = diam/2; }
120 {
return this->radius_*2; }
127 { this->massRadius_ = massDiam/2; }
134 {
return this->massRadius_*2; }
141 { this->halfLength_ = l/2; }
147 {
return this->halfLength_*2; }
150 { this->forceDirection_ = forcedir; }
153 {
return this->forceDirection_; }
#define _ObjectsExport
Definition: ObjectsPrereqs.h:60
The ForceField has a tube shape.
ForceFieldMode
The mode of the ForceField.
Definition: ForceField.h:54
float halfLength_
Half of the length of the ForceField.
Definition: ForceField.h:170
The StaticEntity is the simplest derivative of the orxonox::WorldEntity class.
Definition: StaticEntity.h:50
Declaration of the Tickable interface.
void setMassDiameter(float massDiam)
Set the diameter of the stellar body for the Newtonian ForceField.
Definition: ForceField.h:126
static const float attenFactor_
Attenuation factor for Newtonian ForceFields.
Definition: ForceField.h:176
::std::string string
Definition: gtest-port.h:756
static const float gravConstant_
Gravitational constant for Newtonian ForceFields.
Definition: ForceField.h:174
Vector3 getForceDirection()
Definition: ForceField.h:152
static const std::string modeTube_s
Strings to represent the modes.
Definition: ForceField.h:160
Local homogenous Force field with changeable direction for the Space Station.
The ForceField has a spherical shape but "inverted" behavior.
The ForceField imitates Newtonian gravitation for use in stellar bodies.
void setForceDirection(Vector3 forcedir)
Definition: ForceField.h:149
float getDiameter()
Get the diameter of the ForceField.
Definition: ForceField.h:119
xmlelement
Definition: Super.h:519
float massRadius_
The radius of the stellar body for the Newtonian ForceField.
Definition: ForceField.h:169
ForceFieldMode mode_
The mode of the ForceField.
Definition: ForceField.h:171
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
void setDiameter(float diam)
Set the diameter of the ForceField.
Definition: ForceField.h:113
Mode
Definition: CorePrereqs.h:102
Vector3 forceDirection_
Definition: ForceField.h:177
static const std::string modeHomogen_s
Definition: ForceField.h:164
float getMassDiameter()
Get the diameter of the stellar body for the Newtonian ForceField.
Definition: ForceField.h:133
static const std::string modeSphere_s
Definition: ForceField.h:161
void setFieldVelocity(float vel)
Set the velocity of the ForceField.
Definition: ForceField.h:100
static const std::string modeInvertedSphere_s
Definition: ForceField.h:162
Shared library macros, enums, constants and forward declarations for the objects module ...
float getFieldVelocity()
Get the velocity of the ForceField.
Definition: ForceField.h:106
void setLength(float l)
Set the length of the ForceField.
Definition: ForceField.h:140
float getLength()
Get the length of the ForceField.
Definition: ForceField.h:146
The Tickable interface provides a tick(dt) function, that gets called every frame.
Definition: Tickable.h:52
float velocity_
The velocity of the ForceField.
Definition: ForceField.h:167
float radius_
The radius of the ForceField.
Definition: ForceField.h:168
static const std::string modeNewtonianGravity_s
Definition: ForceField.h:163
Implements a force field, that applies a force to any MobileEntity that enters its range...
Definition: ForceField.h:85
The ForceField has a spherical shape.