----------------------------------------
import GameLogic
from Blender.Mathutils import Euler
co = GameLogic.getCurrentController()
owner = co.getOwner()
euler = Euler([0,0,0])
# This frequently causes a crash
owner.setOrientation(euler)
# Alternatively, I transform the euler angle into a matrix
# and still get a crash frequently
matrix = euler.toMatrix()
owner.setOrientation(matrix)
----------------------------------------
Is this a known bug?
Is it allowed to use the Blender library while in gaming mode?
Thanks!
Code: Select all
Code: Select all