Class WorldEntity
Represents a component which exists in the 3D world.
public abstract class WorldEntity : IdProvider
- Inheritance
-
WorldEntity
- Derived
- Inherited Members
Constructors
WorldEntity(IEntity)
Initializes a new instance of the WorldEntity class.
protected WorldEntity(IEntity entity)
Parameters
entityIEntityThe open.mp entity this component represents.
Properties
Position
Gets or sets the position of this component.
public virtual Vector3 Position { get; set; }
Property Value
Rotation
Gets or sets the rotation of this component.
public virtual Quaternion Rotation { get; set; }
Property Value
RotationEuler
Gets or sets the rotation of this component in Euler angles. Note: this is less accurate than the quaternion representation available through the Rotation property.
public virtual Vector3 RotationEuler { get; set; }
Property Value
VirtualWorld
Gets or sets the virtual world of this component.
public virtual int VirtualWorld { get; set; }