|
NcEngine
|
Handle to a processed Shape instance. More...
#include <CookedShape.h>
Classes | |
| struct | ShapeStorage |
Public Member Functions | |
| CookedShape (const Shape &shape) | |
| Cook from a Shape. | |
| CookedShape (const Shape &shape, const Vector3 &position, const Quaternion &rotation) | |
| Cook from a Shape, applying additional transformations. | |
| CookedShape (const ShapeStorage &cookedData) | |
| Construct from existing cooked data. | |
| CookedShape (CookedShape &&other) noexcept | |
| CookedShape & | operator= (CookedShape &&other) noexcept |
| CookedShape (const CookedShape &)=delete | |
| CookedShape & | operator= (const CookedShape &)=delete |
| auto | HasShape () const noexcept -> bool |
| Check if the internal shape is still valid (e.g. hasn't been moved from). | |
| auto | GetProperties () const -> CookedShapeProperties |
| Get the type and decorations of the CookedShape. | |
| auto | GetPosition () const -> Vector3 |
| Get the shape's translation (will be the origin, unless the shape was cooked with a position). | |
| auto | GetRotation () const -> Quaternion |
| Get the shape's rotation (will be identity, unless the shape was cooked with a rotation). | |
| void | SetPositionAndRotation (const Vector3 &position, const Quaternion &rotation) |
| Partially recook the shape with a new position and rotation. | |
Handle to a processed Shape instance.