actionscript 3 - Box2D: sticky wall issue in pool game using wck -


i'm new box2d, i'm using world construction kit, , have following problem: ball sticking walls @ low velocity.

so read lot of threads talking issue , found have change b2_velocitytreshold value 0.0f in b2settings.as.

so opened file , can't see value, instead i see this :

public static function b2_velocitythreshold():number {     return mem._mrf(lib.b2settings.b2_velocitythreshold); }  public static function set b2_velocitythreshold(v:number):void {     mem._mwf(lib.b2settings.b2_velocitythreshold, v); } 

so don't know how change value...

i searched hours now, it's hard me because i'm not english speaking person (i bet noticed) , found 1 tutorial wck in language.

please me out...

you should post link post found should set value of b2_velocitytreshold value 0.0f.

but understand it, have here setter/getter b2_velocitytreshold. solution proble can changing value return getter:

public static function b2_velocitythreshold():number {    return 0.0f; } 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -