esp::metadata::attributes::PhysicsManagerAttributes class

attributes class describing essential and default quantities used to instantiate a physics manager.

Base classes

class AbstractAttributes
Base class for all implemented attributes. Inherits from esp::core::AbstractFileBasedManagedObject so the attributes can be managed by a esp::core::ManagedContainer.

Constructors, destructors, conversion operators

PhysicsManagerAttributes(const std::string& handle = "") explicit

Public functions

void setSimulator(const std::string& simulator)
Sets the string name for the physics simulation engine we wish to use.
auto getSimulator() const -> std::string
Gets the config-specified string name for the physics simulation engine we wish to use.
void setTimestep(double timestep)
Sets the simulation timestep to use for dynamic simulation.
auto getTimestep() const -> double
Get the simulation timestep to use for dynamic simulation.
void setMaxSubsteps(int maxSubsteps)
auto getMaxSubsteps() const -> int
void setGravity(const Magnum::Vector3& gravity)
Set Simulator-wide gravity.
auto getGravity() const -> Magnum::Vector3
void setFrictionCoefficient(double frictionCoefficient)
auto getFrictionCoefficient() const -> double
void setRestitutionCoefficient(double restitutionCoefficient)
auto getRestitutionCoefficient() const -> double
void writeValuesToJson(io::JsonGenericValue& jsonObj, io::JsonAllocator& allocator) const override
Populate a json object with all the first-level values held in this configuration. Default is overridden to handle special cases for PhysicsManagerAttributes.

Protected functions

auto getObjectInfoHeaderInternal() const -> std::string override
Retrieve a comma-separated string holding the header values for the info returned for this managed object, type-specific.
auto getObjectInfoInternal() const -> std::string override
Retrieve a comma-separated informational string about the contents of this managed object.