Help and examples in this topic, there is free and extended help on BGE.
This is a simple code that passes the speed to the object.
import bge def main(): cont = bge.logic.getCurrentController() own = cont.owner coll = cont.sensors['coll'] vel = own.getLinearVelocity(True) if coll.positive: obj = coll.hitObject obj.setLinearVelocity(vel) if own["dir"] == True: own.applyMovement([0.0, 0.06, 0.0], True) else: own.applyMovement([0.0, -0.06, 0.0], True) main()
Only this affects one object (the first one that touched). How can I make that the speed of the platform is transferred to all the objects that are on it?
Thank you for attention.