Table of Contents

Class Map3DCapsule

Namespace
Gamelogic.Grids.Examples
Assembly
Assembly-CSharp.dll

A map that calculates world positions for mapping a rect grid (in a rectangle shape) to a capsule.

public class Map3DCapsule : IMap3D<RectPoint>
Inheritance
Map3DCapsule
Implements
Inherited Members
Extension Methods

Constructors

Map3DCapsule(IMap<RectPoint>, float, float, float)

public Map3DCapsule(IMap<RectPoint> map2D, float radius, float width, float height)

Parameters

map2D IMap<RectPoint>
radius float
width float
height float

Properties

this[RectPoint]

Gets a world point given a grid point.

public Vector3 this[RectPoint point] { get; }

Parameters

point RectPoint

Property Value

Vector3

this[Vector3]

Gets a grid point given a world point.

public RectPoint this[Vector3 point] { get; }

Parameters

point Vector3

Property Value

RectPoint

Methods

GetLookAt(RectPoint)

Gets the look at vector for a cell at the given point.

public Vector3 GetLookAt(RectPoint point)

Parameters

point RectPoint

Returns

Vector3

To2D()

public IMap<RectPoint> To2D()

Returns

IMap<RectPoint>