Hello!
I have the following code that was copied and pasted from https://docs.coronalabs.com/api/library/physics/addBody.html#outline-body-1. I added the physics library, started it, and set it to hybrid. However, I’m getting an error of ERROR: main.lua:20: physics.addBody() : invalid “outline” in the console. Is the outline option no longer available?
I’ve attached a screenshot of the app and the code I’m using is pasted below.
local physics = require( "physics" ) physics.start() physics.setDrawMode( "hybrid" ) local image\_name = "star.png" local image\_outline = graphics.newOutline( 1, image\_name ) local image\_star = display.newImageRect( image\_name, 130, 130 ) image\_star.y = 200 image\_star.x = 200 physics.addBody( image\_star, {outline = image\_outline} )