Hi :eyebrowlift:
having trouble get this work
import bge
cont = bge.logic.getCurrentController()
own = cont.owner
own.worldPosition = cont.sensors["RAYSENSOR"].hitPosition
maybe something wrong with that code ?
a empty cast a ray in Z- (to the ground)
ray hit ground
assign the hitPosition to the empty (teleport to ground)
the problem:
the empty snaps down to the groundplane - but always at X, Y at 0
in the center of the world
i cant see or find the problem for hours - any help or tipp would be great… :yes:
thx
Tobi