Transform3DComponent
Summary
Represents a 3D transformation component attached to an actor, defining position, rotation, and scale in local and world space.
Remarks
Danger
All calls made within this class MUST be performed on the Master Thread. See Threads.RunLater on how to safely call this from an asynchronous thread. Failure to comply with this can cause catastrophical failures as the engine is not designed for this.
Definition
Namespace: SDT4.Managed.Core.Components
Assembly: SDT4.Managed.Core.dll
struct Transform3DComponent
Implements:
IActorComponent
Fields
| Name | Type | Description |
|---|---|---|
Properties
| Name | Type | Description |
|---|---|---|
public get; set; Owner |
ActorHandle | |
public static get; ComponentId |
Guid | The unique identity of Transform3DComponent. |
public get; Right |
Vector3f | Gets the normalise-length right direction vector in world space. |
public get; Up |
Vector3f | Gets the normalise-length upwards direction vector in world space. |
public get; Forward |
Vector3f | Gets the normalise-length forward direction vector in world space. |
public get; set; Translation |
Vector3d | Gets or sets the translation vector relative to the actor's parent. |
public get; set; Rotation |
Quaternion | Gets or sets the orientation quaternion relative to the actor's parent. |
public get; set; Scale |
Vector3f | Gets or sets the scale vector relative to the actor's parent. |
public get; set; WorldTranslation |
Vector3d | Gets or sets the absolute position vector in world space. |
public get; set; WorldRotation |
Quaternion | Gets or sets the absolute orientation quaternion in world space. |
public get; set; WorldScale |
Vector3f | Gets or sets the absolute scale vector in world space. |
Methods
public virtual Boolean Equals(Object? obj)
Summary: Determines whether the specified object is equal to the current component.
Parameters:
obj(Object?): The object to compare with the current component.
Returns:
- Boolean:
if the specified object is equivalent to this component; otherwise, .
public virtual Int32 GetHashCode()
Summary: Returns the hash code for this component.
Returns:
- Int32: A 32-bit signed integer hash code.
public virtual String ToString()
Summary: Returns a string representation of the component.
Returns:
- String: A string representing the component instance.