Mirroring/Reflecting piece orientation

Mirroring/Reflecting piece orientation

Post just about everything that isn't directly related to Spring here!

Moderator: Moderators

Post Reply
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Mirroring/Reflecting piece orientation

Post 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
Attachments
basicassumption.jpg
basicassumption.jpg (16.27 KiB) Viewed 395 times
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: Mirroring/Reflecting piece orientation

Post by Kloot »

You can't mirror with just turn and move operations.

What you want requires a Spring.SetUnitPieceMatrix callout.
Post Reply

Return to “Off Topic Discussion”