how to get eyerotation?
by Mquaker · in Torque 3D Professional · 08/17/2011 (7:26 am) · 5 replies
i want to know eyeOffset and eyeRotation value in sourcecode.
and i found eyeOffset( eyeOffset.getPosition() ).
but i not found eyeRotation value in sourcecode.
how to get eyerotation?
and i found eyeOffset( eyeOffset.getPosition() ).
but i not found eyeRotation value in sourcecode.
how to get eyerotation?
About the author
visit : http://www.quakedev.net
#2
getEyeTransform() has character shape's eye node transform.
eye node's position and vector.
i need shapebaseimage's render transform on firstperson.
shapebaseimage's render position(0,0,0) and rotation(1,0,0,0) values.
08/17/2011 (4:12 pm)
@Steve : thanks for your answer :)getEyeTransform() has character shape's eye node transform.
eye node's position and vector.
i need shapebaseimage's render transform on firstperson.
shapebaseimage's render position(0,0,0) and rotation(1,0,0,0) values.
#3
http://www.garagegames.com/community/forums/viewthread/125689/1
08/18/2011 (12:55 am)
There is a free resource how to add getNodeTransorm() for shapeimages.http://www.garagegames.com/community/forums/viewthread/125689/1
#4
sorry for my bad english...
eyeoffset definition 'MatrixF' in sourcecode.
i possible get shapebaseimagedata's render position use eyeoffset.getPosition() function.
this position different shape's eye node position.
i know eyeoffset is eye node position's offset.
i want know shapebaseimagedata's eyeRotation value.
ex) eyeoffset.getRotation() function..
08/21/2011 (6:39 pm)
@Ivan : thanks.sorry for my bad english...
eyeoffset definition 'MatrixF' in sourcecode.
i possible get shapebaseimagedata's render position use eyeoffset.getPosition() function.
this position different shape's eye node position.
i know eyeoffset is eye node position's offset.
i want know shapebaseimagedata's eyeRotation value.
ex) eyeoffset.getRotation() function..
#5
AngAxisF has 2 values.
Axis(Point3F) and Angle(F32).
Axis is eyeRotation.axis.x, eyeRotation.axis.y, eyeRotation.z.
Angle is eyeRotation.angle.
thanks, Steave&Ivan.. :)
08/22/2011 (2:04 am)
i found.MountedImage& image = mMountedImageList[0]; ShapeBaseImageData& imageData = *image.dataBlock; AngAxisF eyeRotation(imageData.eyeOffset);
AngAxisF has 2 values.
Axis(Point3F) and Angle(F32).
Axis is eyeRotation.axis.x, eyeRotation.axis.y, eyeRotation.z.
Angle is eyeRotation.angle.
thanks, Steave&Ivan.. :)
Associate Steve Acaster
[YorkshireRifles.com]