Skip to content

Conversation

@kan6868
Copy link
Contributor

@kan6868 kan6868 commented Jul 11, 2025

This upgrade provides better and more optimized vertex handling. More explained in the description of this PR.

I did a work to ensure backwards compatibility with Solar2D:

local image_name = "star.png"

local image_outline = graphics.newOutline( 2, image_name )

local image_star = display.newImageRect( image_name, 32, 32 )

physics.addBody( image_star, { outline=image_outline, needHull = true } )
local pentagonShape = { 0,-37, 37,-10, 23,34, -23,34, -37,-10 }
 
physics.addBody( pentagon, { density=3.0, friction=0.8, bounce=0.3, shape=pentagonShape, needHull = true } )

Work with PR

coronalabs/submodule-box2d#8

@kan6868 kan6868 requested a review from Shchvova as a code owner July 11, 2025 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant