Author Message

Mario

bg
Posts: 703

Location: Bulgaria Sofia
Occupation: Fast way
Age: 118
V$:
#10809   2012-03-08 03:42          
Good to know

Added 5 hours 55 minutes later:

to Daniel
you need this line

catalog_view_ypr = new Ypr( 0.00, 0.00, 0.00 );

rotate left n right
rotate up n down

To rotate the rim in the catalog you need to paste this line in the java

package java.game.cars;

import java.render.osd.*;
import java.io.*;
import java.util.*;
import java.util.resource.*;
import java.game.*;
import java.game.parts.rgearpart.reciprocatingrgearpart.*;

public class advan extends Wheel
{
float f_offset, default_offset, old_offset, diameter, width;

public advan ( int id )
{
name = "ADVAN RGII 19in";

rim_type = rtFACTORY;
diameter = 19.0;
width = 11.0;
default_offset = 0.0;
f_offset = default_offset;
SetupWheel( diameter, width, default_offset);

description = "Variable offset";

catalog_view_ypr = new Ypr( 0.00, 0.00, 0.00 );
}


public void load( File saveGame )
{
super.load( saveGame );

int save_ver = saveGame.readInt();

if (save_ver >= 1)
{
f_offset = saveGame.readFloat();
setSlotPos( 1, new Vector3(f_offset/1000.0, 0, 0), null );
}
}
}

This post was edited by Mario (2012-03-08 10:50, ago)