PDA

View Full Version : My radar spinning around....my entire model!



brsseb
Nov 4 2002, 10:50
Hi

Made a small ship (class derived SmallShip) and wantet to have a radar. Made teh osa_radar in Memory LOD (two vertices) and a rectangular block in main lod named "radar". But once ingame it wont spin around its axis, but instead it seems to orbit the entire ship like a small satelitt or an anoying bug flying around in circles.

Is the osa_radar axis name wrong? Or is the answer in the configfile?

brsseb

Colonel_Klink
Nov 6 2002, 05:52
Hi brsseb

It seems the radar class for ships is different from the tank class. Here is the code I used in the tiger gunboats:
class IndicatorRadar
{
selection = "radar";
axis = "osa radaru"; // this is the axis point you need to change
angle = -360;
min = 0;
max = 1;
};
By the way check that you have 2 axis points for the axis, otherwise some strange animations happen.
Cheers
Klink