Table of Contents

Interface ITransformObject

Namespace
Uncreated.Warfare.Util
Assembly
Uncreated.Warfare.dll

Represents an object existing in the world.

public interface ITransformObject
Extension Methods

Properties

Alive

If this object is still alive.

bool Alive { get; }

Property Value

bool

GridLocation

This object's position relative to the map grid.

GridLocation GridLocation { get; }

Property Value

GridLocation

Position

The world position of the object.

Vector3 Position { get; set; }

Property Value

Vector3

Exceptions

GameThreadException

Not on main thread.

NotSupportedException

Not able to set position.

Rotation

The world rotation of the object.

Quaternion Rotation { get; set; }

Property Value

Quaternion

Exceptions

GameThreadException

Not on main thread.

NotSupportedException

Not able to set rotation.

Scale

The world scale of the object.

Vector3 Scale { get; set; }

Property Value

Vector3

Exceptions

GameThreadException

Not on main thread.

NotSupportedException

Not able to set scale.

Methods

SetPositionAndRotation(Vector3, Quaternion)

Set the position and rotation at the same time.

void SetPositionAndRotation(Vector3 position, Quaternion rotation)

Parameters

position Vector3
rotation Quaternion

Exceptions

GameThreadException

Not on main thread.

NotSupportedException

Not able to set position or rotation.