Hey! I'm trying to get 2DPhysics and 2DPath plugins to work together. But when I run the code nothing moves. The code commented out is working, I just want to add the physics to it.
var time:int;
var length:Number;
_moving = false;
_animation = false;
_path = new LinePath2D(getPoints());
length = _path.totalLength;
if(!_time){
_time = length / _speed;
}
_path.addFollower(this.entity);
//_activeTween = TweenLite.to(_path, _time, {
// progress:1,
// ease:Power0.easeOut,
// onComplete: onComplete
//});
_activeTween = TweenLite.to(_path, _time, {physics2D:{velocity:0, angle:90, acceleration:200, friction:0}, onComplete:onComplete});