I'm making a game where, when a certain even occurs, I want the camera to move up slowly. When triggered, I have the following Python Script for it:
import bge
cont = bge.logic.getCurrentController()
own = cont.owner
if cont.sensors['Hit Cube'].positive:
start = own.worldPosition.z
while own.worldPosition.z-start<2:
own.worldPosition.z +=.1
This works for moving the camera up 2 blender units, but it does not smooth the motion at all. What are some suggestions to accomplish this effect?
own.applyMovement()
orapplyForce
also there is damping property $\endgroup$