How do you manage armature animations with python and no logic bricks ?
Same for raycast how can it be done with code and no logic bricks ?
Is there some documentation about using collision detection between two rigibody fully in python code ?
It’s hard to find tutorials, most are mixing code and logic bricks, but i didn’t found tutorials made with python code only covering those topics.
scene=bge.logic.getCurrentScene()
start = scene.objects['start']
end = scene.objects['end']
hitObject, hitPosition, hitNormal = own.rayCast(end.worldPosition,start.worldPosition,100)
if hitObject:
print("Object hit:", hitObject, "at", hitPosition, "the normal at that point is", hitNormal)
else:
print("hit nothing")
Is missing script how to detect collision between a rigidbody and other physic objects ?