Chubby Posted August 15, 2014 Share Posted August 15, 2014 Hello everyone, I am using the following code to change the velocity of something:object.body.velocity.x -= value;but I dont know how to achieve the same for group..objectArr.setAll('body.velocity.x', -value);^ this will be equalivent to object.body.velocity.x = -value Link to comment Share on other sites More sharing options...
Nepoxx Posted August 15, 2014 Share Posted August 15, 2014 UseobjectArr.addAll('body.velocity.x', -value);I found out about it here. Link to comment Share on other sites More sharing options...
Chubby Posted August 15, 2014 Author Share Posted August 15, 2014 UseobjectArr.addAll('body.velocity.x', -value);I found out about it here.Thanks. I knew it would be something simple Link to comment Share on other sites More sharing options...
Recommended Posts