Click or drag to resize
PlanBaseTransportToPlan Method
Moves the specified sprite to the specified plan's rectangle, aligned to the specified corner/edge.

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public virtual void TransportToPlan(
	SpriteBase Sprite,
	PlanBase Plan,
	RelativePosition Alignment
)

Parameters

Sprite
Type: (Default Namespace)SpriteBase
Sprite to be moved
Plan
Type: (Default Namespace)PlanBase
Specifies a target location
Alignment
Type: (Default Namespace)RelativePosition
Specifies how the sprite's solidity rectangle will be aligned with the target plan's rectangle
Remarks
The specified Plan must be a 2-point plan (specifying a rectangle) or the function will ignore the request (and display an error in debug mode). The sprite will be aligned inside the rectangle according to Alignment, so, for example, if RelativePosition.RightMiddle is specified, the midpoint of the right side of the sprite's solidity rectangle will be aligned to the midpoint of the right side of the plan's rectangle.
See Also