Game Development Community

GetForce function?

by Jeffrey Sweeney · in Technical Issues · 12/16/2008 (7:04 am) · 2 replies

I'm trying to write up some asteroids type player code (birds eye view, go in a constant momentum in the direction you last moved to, etc.) and I can't seem to find a function that gets the current Impulse Force (or speed of force). I'm looking for it because I want to give the player a max speed that it can't go over. Is there a function that does this?

By the way, I did look at the included behavior code, but it seems the max speed limitation is achieved simply by applying damping, which isn't something I want to do.

#1
12/16/2008 (3:47 pm)
%obj.getLinearVelocityX();
%obj.getLinearVelocityY();
#2
12/17/2008 (10:21 am)
Son of a gun... I shoulda knew that.

Thanks. For some reason I thought force was a different from constant linear speed.