step/stepcore
softbody.h
Go to the documentation of this file.
42 explicit SoftBodyParticle(Vector2d position = Vector2d::Zero(), Vector2d velocity = Vector2d::Zero(), double mass = 1)
82 ItemList createSoftBodyItems(const Vector2d& position, const Vector2d& size, const Vector2i& split,
Item * item(const QString &name) const
Get any descendant item by its name.
Definition: world.cc:191
void setPosition(const Vector2d position)
Set the position of the center of mass.
Definition: softbody.cc:185
void setAngularVelocity(double angularVelocity)
Set the angular velicity of the body.
Definition: softbody.cc:261
const SoftBodyParticleList & borderParticles()
Get ordered list of particles on the border of the body.
Definition: softbody.cc:311
ItemList createSoftBodyItems(const Vector2d &position, const Vector2d &size, const Vector2i &split, double bodyMass, double youngModulus, double bodyDamping)
Creates paricles and springs inside soft body.
Spring class.
SoftBodyParticle(Vector2d position=Vector2d::Zero(), Vector2d velocity=Vector2d::Zero(), double mass=1)
Constructs a SoftBadyParticle.
Definition: softbody.h:42
Item, Body, Force and Tool interfaces, World class.
std::vector< SoftBodyParticle * > SoftBodyParticleList
Definition: softbody.h:60
void setBorderParticleNames(const QString &borderParticleNames)
Definition: softbody.cc:338
void setVelocity(const Vector2d velocity)
Set the velocity of the center of mass.
Definition: softbody.cc:212
QString borderParticleNames() const
Definition: softbody.cc:327
Particle and ChargedParticle classes.
const ItemList & items() const
Get list of all direct child items in the ItemGroup.
Definition: world.h:326
SoftBody - a group of several SoftBodyParticle and SoftBodySprings.
Definition: softbody.h:65
SoftBodySpring(double restLength=0, double stiffness=1, double damping=0, Item *bodyPtr1=0, Item *bodyPtr2=0)
Constructs a SoftBodySpring.
Definition: softbody.h:55
Contains multiple Item, Solver and general properties such as time.
Definition: world.h:372
void setAngularMomentum(double angularMomentum)
Set the angular momentum of the body.
Definition: softbody.cc:277
void setShowInternalItems(bool showInternalItems)
Set status of drawing of internal items.
Definition: softbody.h:129
void setWorld(World *world)
Set/change pointer to World in which this object lives.
Definition: softbody.cc:356
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:43 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:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.