Adding a Method to KX_GameObject/TouchSensor

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
Alfonso Crawford
Posts: 3
Joined: Thu Dec 22, 2011 6:40 pm

Adding a Method to KX_GameObject/TouchSensor

Post by Alfonso Crawford » Fri Nov 02, 2012 3:18 am

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.?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests