I took a look at
allowDragging again because I was able to change gravity with MyWorld.gravityX and .gravityY. But even when I set
Code:
[Inspectable(defaultValue=true)]
public var allowDragging:Boolean = true;
in wck.World to false, it doesn't seem to have any effect.
Im wondering, in wck.World:
Code:
public function handleDragStart(e:Event):void {
var b:BodyShape = Util.findAncestorOfClass(e.target as DisplayObject, BodyShape, true) as BodyShape;
if(b && b.b2body && b.allowDragging && b.body.allowDragging) {
isn't the last line supposed to check for the wck.World
allowDragging? If I add to check for
allowDragging also, then it works, even in my class that extends WCK with MyWorld.allowDragging.