Page 1 of 1

Adding a Method to KX_GameObject/TouchSensor

Posted: Fri Nov 02, 2012 3:18 am
by Alfonso Crawford
What I'm aiming to do is add a function that'll do a cycle of the physics engine's collision/clipping check, so that an object moved with ApplyMovement or dLoc won't clip into objects and reset their velocity. I've gotten halfway there by reducing the amount of logic steps the engine takes in comparison to the physics, but fall-speeds still reset when pressing into a wall on the way down.

Preferably, I'd like to attach this to the game object so that there's no need for a Logic Brick.

Is there any guiding advice you have for this venture? where to start with adding to Python objects, etc.?