Stores a position and an orientation.
More...
#include <TransformComponent.hpp>
|
class | GameObject |
|
class | Scene |
|
Stores a position and an orientation.
class GameObject* ae3d::TransformComponent::GetGameObject |
( |
| ) |
const |
|
inline |
const Matrix44& ae3d::TransformComponent::GetLocalMatrix |
( |
| ) |
|
- Returns
- Local transform matrix.
const Vec3& ae3d::TransformComponent::GetLocalPosition |
( |
| ) |
const |
|
inline |
const Quaternion& ae3d::TransformComponent::GetLocalRotation |
( |
| ) |
const |
|
inline |
float ae3d::TransformComponent::GetLocalScale |
( |
| ) |
const |
|
inline |
std::string ae3d::TransformComponent::GetSerialized |
( |
| ) |
const |
- Returns
- Textual representation of component.
Vec3 ae3d::TransformComponent::GetViewDirection |
( |
| ) |
const |
- Returns
- View direction (normalized)
const Matrix44& ae3d::TransformComponent::GetVrView |
( |
| ) |
const |
|
inline |
- Returns
- View matrix for VR that was set by SetVrView.
void ae3d::TransformComponent::LookAt |
( |
const Vec3 & |
localPosition, |
|
|
const Vec3 & |
center, |
|
|
const Vec3 & |
up |
|
) |
| |
- Parameters
-
localPosition | Local position. |
center | Point we're looking at. |
up | Up vector. |
void ae3d::TransformComponent::MoveForward |
( |
float |
amount | ) |
|
void ae3d::TransformComponent::MoveRight |
( |
float |
amount | ) |
|
void ae3d::TransformComponent::MoveUp |
( |
float |
amount | ) |
|
void ae3d::TransformComponent::OffsetRotate |
( |
const Vec3 & |
axis, |
|
|
float |
angleDegrees |
|
) |
| |
- Parameters
-
axis | Axis to rotate about. |
angleDegrees | Angle in degrees to be added to current rotation. |
void ae3d::TransformComponent::SetLocalPosition |
( |
const Vec3 & |
localPos | ) |
|
void ae3d::TransformComponent::SetLocalRotation |
( |
const Quaternion & |
localRotation | ) |
|
- Parameters
-
localRotation | Local rotation. |
void ae3d::TransformComponent::SetLocalScale |
( |
float |
localScale | ) |
|
- Parameters
-
parent | Parent transform or null if there is no parent. |
void ae3d::TransformComponent::SetVrView |
( |
const Matrix44 & |
view | ) |
|
- Parameters
-
view | View matrix for VR viewing. |
The documentation for this class was generated from the following file: