Table of Contents

Class WorldEntity

Namespace
SampSharp.Entities.SAMP
Assembly
SampSharp.OpenMp.Entities.dll

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

entity IEntity

The open.mp entity this component represents.

Properties

Position

Gets or sets the position of this component.

public virtual Vector3 Position { get; set; }

Property Value

Vector3

Rotation

Gets or sets the rotation of this component.

public virtual Quaternion Rotation { get; set; }

Property Value

Quaternion

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

Vector3

VirtualWorld

Gets or sets the virtual world of this component.

public virtual int VirtualWorld { get; set; }

Property Value

int