User:Tanimodori/Example Lua Global Function Documentation
Jump to navigation
Jump to search
bool succ, image = PhysicsAddBodyImage(entity_id, image_file, material, number offset_x = 0, number offset_y = 0, bool centered = false, bool is_circle = false, material_image_file = "data/image.png")
Parameters
- entity_id
- Entity ID that you want to add to
- image_file
- Image file that you want to add
- material
- No description available.
- number offset_x = 0
- offset of x coordinate
- number offset_y = 0
- offset of y coordinate
- bool centered = false
- No description available.
- bool is_circle = false
- No description available.
- material_image_file = "data/image.png"
- Corresponding Material Image file
Returns
- bool succ
- Whether this opreation is successful
- image
- No description available.
Errors
Invalid Handle other than null.
Examples
bool succ, image = PhysicsAddBodyImage(entity_id, image_file, material, number offset_x = 0, number offset_y = 0, bool centered = false, bool is_circle = false, material_image_file = "data/image.png")
if succ and image then
print("opreation succeeded")
end
Notes
A simple note
Category:
- Lua global functions