跳到主要内容
版本:0.1.1

Struct TransformComponent

Namespace: ReadyM.Relay.Common.Oblivion.ECS.Components
Assembly: ReadyM.Relay.Common.Oblivion.dll

Holds an entity's position and rotation in the world.

public struct TransformComponent : IComponent, INetSerializable

Implements​

IComponent, INetSerializable

Inherited Members​

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties​

Position​

public Vector3 Position { get; set; }

Property Value​

Vector3

Rotation​

Rotation around the vertical axis (yaw) in degrees.

public float Rotation { get; set; }

Property Value​

float

Methods​

Assign(in TransformComponent)​

public void Assign(in TransformComponent value)

Parameters​

value TransformComponent

Deserialize(NetDataReader)​

public void Deserialize(NetDataReader reader)

Parameters​

reader NetDataReader

Serialize(NetDataWriter)​

public void Serialize(NetDataWriter writer)

Parameters​

writer NetDataWriter

  • Properties
    • Position
    • Rotation
  • Methods
    • Assign(in TransformComponent)
    • Deserialize(NetDataReader)
    • Serialize(NetDataWriter)