Skip to main content
Version: 4.3.0


Use Reflect to get the reflection vector of an input vector on a surface. Supported types: Vec2 and Vec3. Reflect is in the Transform category.


NameData TypeDescription
DirectionVec2The origin vector to calculate the reflection vector for.
NormalVec2The normal vector of the reflection surface.


NameData TypeDescription
ResultVec2The reflection vector of A.


reflect example


This example has a checkerboard placeholder 2D object initialized to the center of the screen. It maintains a variable called “speed”, and initializes that with value (12, -1). It updates the speed value if the position of the checkerboard goes beyond the vertical boundary of the screen by using the Reflect node.

reflect node