Surface information for a collision.
More...
#include <Surface.hh>
Surface information for a collision.
◆ Surface()
sdf::v12::Surface::Surface |
( |
| ) |
|
◆ Contact()
Get the associated contact object.
- Returns
- Pointer to the associated Contact object, nullptr if the Surface doesn't contain a Contact element.
◆ 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 surface 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.
◆ SetContact()
void sdf::v12::Surface::SetContact |
( |
const sdf::Contact & |
_contact | ) |
|
Set the associated contact object.
- Parameters
-
[in] | _cont | The contact object. |
◆ ToElement()
Create and return an SDF element filled with data from this surface.
Note that parameter passing functionality is not captured with this function.
- Returns
- SDF element pointer with updated surface values.
The documentation for this class was generated from the following file: