I'm trying to console.log the velocity of an object with box2dweb It should be possible to get velocity with following method GetLinearVelocity() but I'm not sure how to do? I've tried the following ways:
var heroMove = GetLinearVelocity().hero;
console.log('heroMove');
and
var heroMove = GetLinearVelocity('hero');
console.log('heroMove');
In console I get the message:
ReferenceError: GetLinearVelocity is not defined
It's probably an easy answer, but seems like there is no doc for jquery.box2d and I can't see whats wrong?