View Full Version : Transform matrix trouble
gasmasocet 10-04-2006, 08:50 PM Any way to change matrix position in loacal coords?
obj.transform = MY LACK OF KNOWLEDGE
need to do this but with matrix
in coordsys local move obj [0,0,-Offset]
help me please
|
|
djlane
10-04-2006, 09:46 PM
This should work though not sure if itss the best way:
offsetTM = transmatrix [ 0 ,100 , 0 ] -- offset 100 units in the Y axis
TheObjectToMove.transform = offsetTM * TheObjectToMove.transform -- apply the offset
Cheers
Dan
gasmasocet
10-05-2006, 01:24 AM
works perfect 10X
interesting for me is how to do matrix transformation in other spaces
(view, camera, screen and etc.) cant see anything in the help about that
If you want to learn how all of it works get Bobo's The Matrix Explained DVD from cg-academy.net. Has to be the best resouce around.
j-man
10-05-2006, 04:02 PM
I thought you hadn't had the time to watch it Paul LOL, or are you going how it looks on your desk? (don't judge a book by it's cover...)
J.
CGTalk Moderation
10-05-2006, 04:02 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.