|
|
@ -3655,28 +3655,32 @@ return { |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
name = "GetCameraMatrix", |
|
|
|
description = "Get camera transform matrix (view matrix)", |
|
|
|
returnType = "Matrix", |
|
|
|
name = "GetWorldToScreen", |
|
|
|
description = "Get the screen space position for a 3d world space position", |
|
|
|
returnType = "Vector2", |
|
|
|
params = { |
|
|
|
{type = "Vector3", name = "position"}, |
|
|
|
{type = "Camera", name = "camera"} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
name = "GetCameraMatrix2D", |
|
|
|
description = "Get camera 2d transform matrix", |
|
|
|
returnType = "Matrix", |
|
|
|
name = "GetWorldToScreenEx", |
|
|
|
description = "Get size position for a 3d world space position", |
|
|
|
returnType = "Vector2", |
|
|
|
params = { |
|
|
|
{type = "Camera2D", name = "camera"} |
|
|
|
{type = "Vector3", name = "position"}, |
|
|
|
{type = "Camera", name = "camera"}, |
|
|
|
{type = "int", name = "width"}, |
|
|
|
{type = "int", name = "height"} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
name = "GetWorldToScreen", |
|
|
|
description = "Get the screen space position for a 3d world space position", |
|
|
|
name = "GetWorldToScreen2D", |
|
|
|
description = "Get the screen space position for a 2d camera world space position", |
|
|
|
returnType = "Vector2", |
|
|
|
params = { |
|
|
|
{type = "Vector3", name = "position"}, |
|
|
|
{type = "Camera", name = "camera"} |
|
|
|
{type = "Vector2", name = "position"}, |
|
|
|
{type = "Camera2D", name = "camera"} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -3689,22 +3693,18 @@ return { |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
name = "GetWorldToScreenEx", |
|
|
|
description = "Get size position for a 3d world space position", |
|
|
|
returnType = "Vector2", |
|
|
|
name = "GetCameraMatrix", |
|
|
|
description = "Get camera transform matrix (view matrix)", |
|
|
|
returnType = "Matrix", |
|
|
|
params = { |
|
|
|
{type = "Vector3", name = "position"}, |
|
|
|
{type = "Camera", name = "camera"}, |
|
|
|
{type = "int", name = "width"}, |
|
|
|
{type = "int", name = "height"} |
|
|
|
{type = "Camera", name = "camera"} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
name = "GetWorldToScreen2D", |
|
|
|
description = "Get the screen space position for a 2d camera world space position", |
|
|
|
returnType = "Vector2", |
|
|
|
name = "GetCameraMatrix2D", |
|
|
|
description = "Get camera 2d transform matrix", |
|
|
|
returnType = "Matrix", |
|
|
|
params = { |
|
|
|
{type = "Vector2", name = "position"}, |
|
|
|
{type = "Camera2D", name = "camera"} |
|
|
|
} |
|
|
|
}, |
|
|
|