Defines the Area of Interest (AoI) for the MMORoom.

Namespace: Sfs2X.Requests.MMO
Assembly: SmartFox2X (in SmartFox2X.dll) Version: 1.7.0.0 (1.7.0)

Syntax

C#
public Vec3D DefaultAOI { get; set; }

Property Value

Type: Vec3D

Remarks

This value represents the area/range around the user that will be affected by server events and other users events. It is represented by a Vec3D object providing 2D or 3D coordinates.

Setting this value is mandatory.

Examples

A Vec3D(50,50) describes a range of 50 units (e.g. pixels) in all four directions (top, bottom, left, right) with respect to the user position in a 2D coordinates system. A Vec3D(120,120,60) describes a range of 120 units in all four directions (top, bottom, left, right) and 60 units along the two Z-axis directions (backward, forward) with respect to the user position in a 3D coordinates system.

See Also