Math.LookAt¶
Name | Mandatory | Description | Default | Type |
---|---|---|---|---|
⬅️ Input |
Takes a table with two float3 values: 'Position' (the camera's position) and 'Target' (the point the camera is looking at). Eg. | {Position: Float3 Target: Float3} |
||
Output ➡️ |
Returns a 4x4 view matrix (a sequence of four float4 vectors). | [Float4] |
This shard creates a 4x4 view matrix (a sequence of four float4 vectors) for a camera based on the camera's position and a target point which is represented as a table with two float3 vectors: 'Position' and 'Target', that is passed as input. A float4 vector is a vector with 4 float elements while a float3 vector is a vector with 3 float elements.