Skip to main content

Reflect

ValueAdapter_Reflect reflects a vector off a plane defined by a normal: Vector3.Reflect(first, second).

FieldDescription
Secondary VectorThe second vector. When the adapter is the Merge Operation of a Tree Operation, it is overwritten with the secondary Stat's value.
Process OrderIncoming To Sec: reflects the input vector off the secondary normal. Sec To Incoming: reflects the secondary vector off the input normal.

Ships for Vector2 and Vector3 — bouncing projectiles, ricochets.

Example​

A projectile bounces off a wall whose normal is (−1, 0, 0):

Input (velocity)Secondary (normal)Process OrderResult
(1, 0, 1)(−1, 0, 0)Incoming To Sec(−1, 0, 1)

Merged in a Tree Operation, the normal can come from a Stat — the surface the projectile last hit.