Hello,
I am creating some dices and got some problems figuring out what the score/top face will be. So i thought to cast an ray from a manager to the dice and use the poly to get the material, this works perfectly fine with a static object but seems not to work with a rigid body type, it just returns None.
ray = dice_manager.rayCast(min_z_vec, dice_manager, 1, poly = 1)
print(ray[3].material_name) #works on static but not on rigid body types
I could make a workaround for it by just replacing the rolled dices with static ones that copy positions/orientations and read those. I also thought about creating a dict with angles, but this ain’t gonna work either because to handle all the in-between angles would be a pain(90.1, 90.5, etc)
Is there a way to make this work or an other way to know witch side/score/number is up?
Thanks