Page 1 of 1

Mirroring/Reflecting piece orientation

Posted: 10 Jun 2014, 14:16
by PicassoCT
Well seems, i fail at the most basic task.

I have two pieces at a unit, one which gets a random direction. The other one should gets the same direction, but mirrored on the yz-plan (y_axis).

Now i tryied the usual suspects. Householder Matrice which gave me this

Code: Select all

1 0 0
 0-1 0
 0  0 1
Which did not work. I tryied getting the vector of the piece and to computate that one via math.acos(v1) - which again did not work.

Image

Also yes its a basic problem.. but we need more thread on basic problems, cause that is were the newbs are.

any help is welcome

Re: Mirroring/Reflecting piece orientation

Posted: 10 Jun 2014, 15:16
by Kloot
You can't mirror with just turn and move operations.

What you want requires a Spring.SetUnitPieceMatrix callout.