Total Pageviews

Monday, April 21, 2014

physics.setDebugErrorsEnabled()

physics.setDebugErrorsEnabled()
ហ្វាំងសិននេះអនុញ្ញាតឪ្យ extra physics errors to be caught by Box2D
ចំណាំះ សំរាប់​ feature នេះមានតែលើ Mac simulator
Syntax: physics.setDebugErrorsEnabled(enabled)
Enabled(តំរូវការ) វាជា Boolean ដែលអនុញ្ញាតឪ្យ extra physics errors to be caught by Box2D
សូមមើលកូដះ
-- Toggle extra physics errors for debugging.
if ( physics.getDebugErrorsEnabled() ) then

    physics.setDebugErrorsEnabled( false )
else
    physics.setDebugErrorsEnabled( true )
end

No comments:

Post a Comment