GetAngleBetweenObjects

From Dragon Age Toolset Wiki
Jump to: navigation, search

This page was generated by Sunjammer's Dragon Age Script Parser.

The parser was unable to extract and/or match all the information required and has flagged this page as containing one or more errors. The source file was not formatted correctly and the information presented is incomplete or incorrect.

This page must be reviewed by a knowledgeable scripter as it will need to be updated. Once identified, the issue in the source file should be reported to BioWare.

Please remove the {{Generated with errors}} tag once the page has been corrected.

Gets the angle between two objects

float GetAngleBetweenObjects(
object oObjectA,
object oObjectB
);
Parameters:
oObjectA
Object that has a facing direction
oObjectB
Object that is positioned relative to object A
Returns:

[Undocumented]

Source:

script.ldf

Description

Returns the angle (in degrees) between the direction objectA is facing and the vector formed between objectA and objectB. The angle follows a counterclockwise sequence, starting from the front. If a objectB is derectly in front of objectA, the angle will be 0. If object B is exactly to the left, the angle will be 90 degrees. If object B is behind object A, the angle will be 180, and if object B is to the right, the angle will be 270.