Friction information for a surface.
More...
#include <Surface.hh>
Friction information for a surface.
◆ Friction()
sdf::SDF_VERSION_NAMESPACE::Friction::Friction |
( |
| ) |
|
◆ BulletFriction()
◆ Element()
Get a pointer to the SDF element that was used during load.
- Returns
- SDF element pointer. The value will be nullptr if Load has not been called.
◆ Load()
Load the friction based on a element pointer.
This is not the usual entry point. Typical usage of the SDF DOM is through the Root object.
- Parameters
-
- Returns
- Errors, which is a vector of Error objects. Each Error includes an error code and message. An empty vector indicates no error.
◆ ODE()
const sdf::ODE * sdf::SDF_VERSION_NAMESPACE::Friction::ODE |
( |
| ) |
const |
Get the associated ODE object.
- Returns
- Pointer to the associated ODE object, nullptr if the Surface doesn't contain a ODE element.
◆ SetBulletFriction()
void sdf::SDF_VERSION_NAMESPACE::Friction::SetBulletFriction |
( |
const sdf::BulletFriction & |
_bullet | ) |
|
◆ SetODE()
void sdf::SDF_VERSION_NAMESPACE::Friction::SetODE |
( |
const sdf::ODE & |
_ode | ) |
|
Set the associated ODE object.
- Parameters
-
◆ SetTorsional()
void sdf::SDF_VERSION_NAMESPACE::Friction::SetTorsional |
( |
const sdf::Torsional & |
_torsional | ) |
|
Set the torsional friction.
- Parameters
-
[in] | _torsional | The torsional friction. |
◆ Torsional()
const sdf::Torsional * sdf::SDF_VERSION_NAMESPACE::Friction::Torsional |
( |
| ) |
const |
Get the torsional friction.
- Returns
- Pointer to the torsional friction nullptr if the Surface doesn't contain a torsional friction element.
The documentation for this class was generated from the following file: