Game Development Community

Camera Roll

by Viren Thambidorai · in Torque Game Engine Advanced · 10/11/2007 (4:53 am) · 1 replies

Hi all,

I want camera roll to be activated for torque camera ... looking at the code in Camera.h & cpp , i understood tht in setTransform function they have set value for y component to be zero!

Is it the right place am looking at first of all?? is this the value i need to tweak or its smthing else?

kindly help :)

thanks.

#1
10/15/2007 (11:13 pm)
All right, seems to me am the only one responding :D

U have to make follwing chnages in prder to get camera roll wrking for fly mode camera.

In SDK\game\camera.cpp -->

function processTick() after line
mRot.x = -MaxPitch;
add
mRot.y += move->roll

again, now in writePacketData() right after line
bstream->write(mRot.z)
add
bstream->write(mRot.y);
same is the thing for readPacketdata()!

now in packUpdate() & unpackUpdate() add
bstream->write(mRot.y)
at the end :)

dats it!