CP::Shape vertices occasionally deemed invalid
RavensKrag opened this issue · 1 comments
RavensKrag commented
Seems to occur for buildings with a 1x1 base. However, the error does not occur every time the engine is run, only every 3rd or 4th time.
/GameDev/Eternity/Code/Physics/ChipmunkExtension.rb:54:in `initialize': The verts array does not from a valid polygon! (ArgumentError)
from /GameDev/Eternity/Code/Physics/ChipmunkExtension.rb:54:in `initialize'
from/GameDev/Eternity/Code/Physics/Physics.rb:120:in `new'
from /GameDev/Eternity/Code/Physics/Physics.rb:120:in `init_physics'
from /GameDev/Eternity/Code/Physics/Physics.rb:161:in `init_physics'
from /GameDev/Eternity/Code/GameObjects/Building.rb:21:in `initialize'
from /GameDev/Eternity/Code/GameStates/LevelState.rb:16:in `new'
from /GameDev/Eternity/Code/GameStates/LevelState.rb:16:in `initialize'
from /GameDev/Eternity/Code/GameStates/GameStateManager.rb:117:in `new'
from /GameDev/Eternity/Code/GameStates/GameStateManager.rb:117:in `new_gamestate'
from ./Code/init_game.rb:76:in `initialize'
from ./Code/init_game.rb:241:in `new'
from ./Code/init_game.rb:241:in `<main>'
RavensKrag commented
Bug no longer reproducible. Will close for now, and will open again if it comes back.
Issue closed.