Table of Contents

Method SnapToWorld

Namespace
Pinwheel.Vista
Assembly
Pinwheel.Vista.Runtime.dll

SnapToWorld(Vector3[])

Snaps every anchor in an array to the first collider hit below it.

public static void SnapToWorld(Vector3[] srcAnchor)

Parameters

srcAnchor Vector3[]

Anchor array to modify in place.

Remarks

Each anchor casts a ray downward from a point 10,000 units above its current position and updates only its Y coordinate when a hit is found.

SnapToWorld(Vector3)

Snaps one anchor to the first collider hit below it and returns the adjusted point.

public static Vector3 SnapToWorld(Vector3 srcAnchor)

Parameters

srcAnchor Vector3

Returns

Vector3