AW AVATAR DISTANCE

From ActiveWiki
Jump to navigation Jump to search


Minimum requirements
Added in version 4.1
SDKbuild 53


AW_AVATAR_DISTANCE

Type

Integer

Description

Distance in the XZ plane from the origin of the mover entity to the rider.

Notes

This attribute is used together with AW_AVATAR_ANGLE and AW_AVATAR_Y_DELTA to determine the position of a rider relative to the mover entity.

XZ plane (top view)

              z+

              | ___  * r
              |/ a \/
              |    /
              |   /
              |  /
              | /
              |/
  x- ---------m--------- x+
              |
              |
              |
              |
              |
              |
              |

              z-

m = Mover entity origin.
x = Mover entity X axis.
z = Mover entity Z axis.
r = Rider.
mr = Vector from m to r (AW_AVATAR_DISTANCE).
a = Angle between mr and z+ (AW_AVATAR_ANGLE).

Used by

See also