Method FromPosition
FromPosition(float3)
Returns a Transform initialized with the given position. Rotation will be identity, and scale will be 1.
Declaration
public static LocalTransform FromPosition(float3 position)
Parameters
Type | Name | Description |
---|---|---|
float3 | position | The position. |
Returns
Type | Description |
---|---|
LocalTransform | The Transform. |
FromPosition(float, float, float)
Returns a Transform initialized with the given position. Rotation will be identity, and scale will be 1.
Declaration
public static LocalTransform FromPosition(float x, float y, float z)
Parameters
Type | Name | Description |
---|---|---|
float | x | The x coordinate of the position. |
float | y | The y coordinate of the position. |
float | z | The z coordinate of the position. |
Returns
Type | Description |
---|---|
LocalTransform | The Transform. |