", Auto-rotating player on server side | Torque Game Engine | Forums | Community | GarageGames.com

Game Development Community

Auto-rotating player on server side

by Orion Elenzil · in Torque Game Engine · 04/18/2006 (1:27 pm) · 2 replies

This is hopefully an easy one,

i'd like to animate the reorienting of the character serverside,
and wondered if there's already some support for stuff like that.

eg, something like

%player.setTargetOrientationAndTime("0 0 1 ", );


i'd also like to cancel the animation if the player steps in and moves or rotates themselves.

tia,
orion

#1
04/18/2006 (5:56 pm)
So i wrote my own in torqueScript on the server side,
which probably ends up more or less equivelant to tim hutcheson's.

but the resulting animation just isn't very smooth.
i've tried timer periods ranging from 100 to 10ms.

any fixes for that ?
#2
04/18/2006 (6:06 pm)
I definately feel that it' a function that should be written in C++ and called every process tick. Things like Items and stuff spin on their own. Perhaps looking into that code could reveal how to do it with a player.