Wikia

NWN2Wiki

CalcPointAwayFromPoint

Talk0
3,772pages on
this wiki
///////////////////////////////////////////////////////////////////////////////
// CalcPointAwayFromPoint
///////////////////////////////////////////////////////////////////////////////
// Created By:  Brock Heinz - OEI
// Created On:  02/10/06
// Description: This will create a new point directly away from a starting 
//              point
// Arguments:
//  lPoint              - The point you are starting from
//  lAwayFromPoint      - The point you want to generate a new location away from
//  fDistance           - How far away you want the new point to be. This can
//                          be a negative value. (i.e. to generate a point nearer
//                          or even past the away point
//  fAngularVariance    - This will add some randomness to the position of the
//                        new point. Values are in degrees, from 0 to 180
//  bComputeDistFromStart - If TRUE, then the new point is fDistance away from
//                          lPoint. If FALSE, then it is fDistance away from 
//                          lAwayFromPoint.
// Returns: A location away from lAwayFromPoint based on the position of 
//          lPoint. Note that if there is an error, lPoint is returned
///////////////////////////////////////////////////////////////////////////////
location CalcPointAwayFromPoint( location lPoint, location lAwayFromPoint, float fDistance, float fAngularVariance, int bComputeDistFromStart );
Advertisement | Your ad here

Videos

Remove video
Are you sure you want to remove this video from the Videos list?
Please wait wile we are removing the video
Error occurred while loading data. Please recheck your connection and refesh the page.
3 Videos on this wiki
Add a video
1 of 1

Photos

Add a Photo
1,439photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki