rotate entity + transform

Blitz3D Forums/Blitz3D Programming/rotate entity + transform

Akat(Posted 2004) [#1]
now i know how to move character according to camera view like u can see in LOTR:ROTK... now the probs is, how to rotate the character according to the camera?


Akat(Posted 2004) [#2]
i still dont get how to do this... anyone had any idea?


puki(Posted 2004) [#3]
Hey "Akat" maybe people don't fully understand your question.

I assume you are talking about the game 'LOTR:ROTK' (I haven't played it)?

Are you talking about a 3rd person viewpoint - almost like a fixed point camera that is overlooking an area (like a security camera), but it is kind of floating?

Is the camera fixed and the character rotating or is the camera rotating with the character?

You may want to be a bit more specific.

p.s. 'Alyridura' is one gorgeous looking project - I hope all is going well.


Akat(Posted 2004) [#4]
Oh its OK Puki, i got it already - to be frank... here's the codes:

If KeyDown(17)
TFormVector 0,0,0.1,cam,0
TranslateEntity hero,TFormedX(),0,TFormedZ()
TurnEntity cubepiv,0,DeltaYaw(cubepiv,cam),0
TurnEntity cube,0,EntityYaw(cubepiv)/8,0
If AnimSeq(cube) = IdleA And AnimSeq(UpperBody) = IdleU And AnimSeq(LowerBody) = IdleL
Animate cube,1,0.35,WalkA,16
Animate UpperBody,1,0.35,WalkU,16
Animate LowerBody,1,0.35,WalkL,16
EndIf
EndIf

btw... thanqs for you concern on Alyridura