[This is preliminary documentation and is subject to change.]

Derives the tile grid location based on the provided world space position.

Namespace: org.critterai.nav
Assembly: cai-nav (in cai-nav.dll) Version: 0.4.0.0 (0.4.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public void DeriveTileLocation(
	Vector3 position,
	out int x,
	out int z
)
Public Sub DeriveTileLocation ( _
	position As Vector3, _
	<OutAttribute> ByRef x As Integer, _
	<OutAttribute> ByRef z As Integer _
)
public:
void DeriveTileLocation(
	Vector3 position, 
	[OutAttribute] int% x, 
	[OutAttribute] int% z
)

Parameters

position
Vector3
Position
x
Int32%
The tile's grid x-location.
z
Int32%
The tiles's grid z-location.

See Also