|
Wasabi
|
#include <WObject.hpp>
Public Member Functions | |
| void | Scale (float x, float y, float z) |
| void | Scale (WVector3 scale) |
| WVector3 | GetScale () const |
| WMatrix | GetWorldMatrix () |
| bool | UpdateLocals () |
| void | OnStateChange (STATE_CHANGE_TYPE type) |
Public Member Functions inherited from WOrientation | |
| void | SetPosition (float x, float y, float z) |
| void | SetPosition (const WVector3 pos) |
| void | Point (float x, float y, float z) |
| void | Point (WVector3 target) |
| void | SetAngle (WQuaternion quat) |
| void | SetToRotation (const WOrientation *const device) |
| void | SetULRVectors (WVector3 up, WVector3 look, WVector3 right) |
| void | SetToTransformation (WMatrix mtx) |
| void | Yaw (float angle) |
| void | Roll (float angle) |
| void | Pitch (float angle) |
| void | Move (float units) |
| void | Strafe (float units) |
| void | Fly (float units) |
| float | GetPositionX () const |
| float | GetPositionY () const |
| float | GetPositionZ () const |
| WVector3 | GetPosition () const |
| float | GetAngleX () const |
| float | GetAngleY () const |
| float | GetAngleZ () const |
| WQuaternion | GetRotation () const |
| WVector3 | GetUVector () const |
| WVector3 | GetLVector () const |
| WVector3 | GetRVector () const |
| virtual void | SetBindingMatrix (WMatrix mtx) |
| void | RemoveBinding () |
| WMatrix | GetBindingMatrix () const |
| bool | IsBound () const |
| WMatrix | ComputeTransformation () const |
| WMatrix | ComputeInverseTransformation () const |
Friends | |
| class | WObject |
An instance is used by a WObject to provide a way for users to easily access and modify instances of an object (when it enables geometry instancing).
| WVector3 WInstance::GetScale | ( | ) | const |
Retrieves the scale factors of this instance.
| WMatrix WInstance::GetWorldMatrix | ( | ) |
Retrieves the world matrix computed so far. A call to UpdateLocals() should be made prior to this one to ensure getting the most recent matrix.
|
virtual |
A callback called by this class when the entity changes its position or orientation.
| type | Orientation change type |
Reimplemented from WOrientation.
| void WInstance::Scale | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) |
Sets the scale of this instance.
| x | X scale multiplier |
| y | Y scale multiplier |
| z | Z scale multiplier |
| void WInstance::Scale | ( | WVector3 | scale | ) |
Sets the scale of this instance.
| scale | Scale factor components |
| bool WInstance::UpdateLocals | ( | ) |
1.8.17