TargetingSnapshot2D
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
This page documents the supported public API surface only. Private, internal, benchmark, test, and implementation-detail types are intentionally omitted.
Declaration
Summary
Represents a snapshot of targeting information for placement operations.
This class contains all the data needed to determine where a placeable object should be positioned and how it should be oriented.
Metadata
Namespace: GridPlacement.Core.Types
Source File: cs/Core/Types/TargetingSnapshot2D.cs
Assembly: GridPlacement.Core
Type: class
Constructors
TargetingSnapshot2D
Creates a new targeting snapshot with default values.
TargetingSnapshot2D
Creates a new targeting snapshot with the specified grid position.
Parameters
| Name | Description |
|---|---|
gridPosition | The grid position. |
Properties
GridPosition
Gets or sets the grid position where the targeting cursor is located.
CellCenter
Gets or sets the world position (center of the grid cell).
WorldPosition
Gets or sets the world position of the targeting cursor.
Normal
Gets or sets the normal vector at the targeting position.
Mode
Gets or sets the targeting mode being used.
Data
Gets or sets additional targeting data.
IsValid
Gets or sets whether the targeting position is valid.
Methods
Clone
Creates a copy of this targeting snapshot.
Returns
A new TargetingSnapshot2D with the same values.