SkeetonYu
(SkeetonYu)
April 27, 2018, 2:25am
11
beanswaggle:
@SkeetonYu
alright so after reviewing your sample project here are my thoughts. this seems like it will work. the issue is the hardcoded rotation axis for each space. The main reason im having an issue is that each of these spaces have the possibility to shift, move, and rotate. so one turn that specific space might be on the XY axis and the next turn it might be on the XZ Axis. so everything you have done in your example will work besides the hardcoded rotation axis.
although I have learned from this that the only information ill need is what rotation axis it lies on to determine the appropriate rotation of the pawn.
This does have me thinking… is there a way i could determine the rotation axis based off of where each space is in relation to the center of the cube??? :eek:
I think you can if you find the rotation using forward vector and right vector. That should give you the direction of each square and use that to determine which axis to use.