step/stepcore
gravitation.cc
Go to the documentation of this file.
28 STEPCORE_META_OBJECT(GravitationForce, QT_TRANSLATE_NOOP("ObjectClass", "GravitationForce"), QT_TR_NOOP("Gravitation force"), 0,
30 STEPCORE_PROPERTY_RW(double, gravitationConst, QT_TRANSLATE_NOOP("PropertyName", "gravitationConst"), STEPCORE_FROM_UTF8(QT_TRANSLATE_NOOP("Units", "N m²/kg²")),
33 STEPCORE_META_OBJECT(GravitationForceErrors, QT_TRANSLATE_NOOP("ObjectClass", "GravitationForceErrors"), QT_TR_NOOP("Errors class for GravitationForce"), 0,
35 STEPCORE_PROPERTY_RW(double, gravitationConstVariance, QT_TRANSLATE_NOOP("PropertyName", "gravitationConstVariance"), STEPCORE_FROM_UTF8(QT_TRANSLATE_NOOP("Units", "N m²/kg²")),
36 QT_TR_NOOP("Gravitation constant variance"), gravitationConstVariance, setGravitationConstVariance))
38 STEPCORE_META_OBJECT(WeightForce, QT_TRANSLATE_NOOP("ObjectClass", "WeightForce"), QT_TR_NOOP("Weight force"), 0,
40 STEPCORE_PROPERTY_RW(double, weightConst, QT_TRANSLATE_NOOP("PropertyName", "weightConst"), STEPCORE_FROM_UTF8(QT_TRANSLATE_NOOP("Units", "m/s²")), QT_TR_NOOP("Weight constant"),
43 STEPCORE_META_OBJECT(WeightForceErrors, QT_TRANSLATE_NOOP("ObjectClass", "WeightForceErrors"), QT_TR_NOOP("Errors class for WeightForce"), 0,
45 STEPCORE_PROPERTY_RW(double, weightConstVariance, QT_TRANSLATE_NOOP("PropertyName", "weightConstVariance"), STEPCORE_FROM_UTF8(QT_TRANSLATE_NOOP("Units", "m/s²")),
void applyForce(const Vector2d &force, const Vector2d &position)
Apply force (and torque) to the body at given position (in World coordinates)
Definition: rigidbody.cc:170
RigidBody class.
const BodyList & bodies() const
Get list of all items (not including sub-items) in the World.
Definition: world.h:427
WeightForce(double weightConst=Constants::WeightAccel)
Constructs WeightForce.
Definition: gravitation.cc:100
void setGravitationConstVariance(double gravitationConstVariance)
Set gravitationConst variance.
Definition: gravitation.h:54
GravitationForce(double gravitationConst=Constants::Gravitational)
Constructs GravitationForce.
Definition: gravitation.cc:58
const Vector2d & position() const
Get position of the center of mass of the body.
Definition: rigidbody.h:160
void applyForceVariance(const Vector2d &forceVariance)
Increment force variance.
Definition: particle.h:73
void applyForceVariance(const Vector2d &force, const Vector2d &position, const Vector2d &forceVariance, const Vector2d &positionVariance)
Apply force (and torque) variance to the body at given position (in World coordinates) ...
Definition: rigidbody.cc:177
STEPCORE_SUPER_CLASS(CollisionSolver)
ParticleErrors * particleErrors()
Get (and possibly create) ParticleErrors object.
Definition: particle.h:164
setAngleVariance setAngularVelocityVariance STEPCORE_FROM_UTF8(QT_TRANSLATE_NOOP("Units","rad/s²"))
QT_TRANSLATE_NOOP("ObjectClass","GJKCollisionSolver")
static const double GravitationalError
Error of newtonian constant of gravitation.
Definition: constants.h:53
QT_TR_NOOP("Errors class for CoulombForce")
STEPCORE_PROPERTY_RW(double, depth, QT_TRANSLATE_NOOP("PropertyName","depth"), QT_TRANSLATE_NOOP("Units","J"), QT_TR_NOOP("Potential depth"), depth, setDepth) STEPCORE_PROPERTY_RW(double
GravitationForceErrors * gravitationForceErrors()
Get (and possibly create) GravitationForceErrors object.
Definition: gravitation.h:96
void setWeightConstVariance(double weightConstVariance)
Set weightConst variance.
Definition: gravitation.h:123
WeightForceErrors * weightForceErrors()
Get (and possibly create) WeightForceErrors object.
Definition: gravitation.h:161
static const double WeightAccelError
Error of standard acceleration of gravity (free fall on Earth)
Definition: constants.h:68
Particle and ChargedParticle classes.
STEPCORE_META_OBJECT(CollisionSolver, QT_TRANSLATE_NOOP("ObjectClass","CollisionSolver"),"CollisionSolver", MetaObject::ABSTRACT, STEPCORE_SUPER_CLASS(Object), STEPCORE_PROPERTY_RW(double, toleranceAbs, QT_TRANSLATE_NOOP("PropertyName","toleranceAbs"), STEPCORE_UNITS_1, QT_TR_NOOP("Allowed absolute tolerance"), toleranceAbs, setToleranceAbs) STEPCORE_PROPERTY_R_D(double, localError, QT_TRANSLATE_NOOP("PropertyName","localError"), STEPCORE_UNITS_1, QT_TR_NOOP("Maximal local error during last step"), localError)) STEPCORE_META_OBJECT(GJKCollisionSolver
GravitationForce and WeightForce classes.
RigidBodyErrors * rigidBodyErrors()
Get (and possibly create) RigidBodyErrors object.
Definition: rigidbody.h:261
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.