change translation/rotatoin damping in python?

I’ve tried many things but I can’t seem to figure out how to change damping in python. is there a way?

own.worldLinearVelocity*=.95

own.worldAngularVelocity*=.95

tamper with dem numberz

is there not something like own.damping that works?

I am not sure,

maybe swap objects?

what are you trying to do?

what you posted will work, I just assumed there was a built in system that could be used more easily. I really don’t understand enough about the underlying processes of the BGE to know if your way would use more cpu than something built in.

I suggest to check the BGE API. Here you can find the attributes of game objects, scenes, the logic and all other aspects of the BGE.

BluePrintRandom performs his own “physics simulation”. This is fine in certain simulations (I used it in my buoyancy library) but requires constantly running Python controllers.

Edit:

Hint: it is there, but I can’t tell if it works

I think what you’re looking for are the Translation and Rotation damping settings under the Physics tab. Note that they only show up if the object is set to Dynamic or Rigid Body physics types.

EDIT: I don’t think this properties are exposed anywhere in the Python API nor can they be animated, so you may want to go with something similar to BluePrintRandom’s solution if you need something more dynamic.