Jump to content

How should I add more vehicle functions in Unigine's City Traffic System?


photo

Recommended Posts

Could I add more vehicle funcrions in Unigine's City Traffic System?

If I can realize clutch sytem and other functions, That will be great.

If I can not do this, please tell me how can I add the clutch functions. Thank you.

 

The details of clutch system and other functions are listed below:

1. functions we need in clutch system:

(1) When cutch is operated, the effect of engine closure need to be peformed.

(2) When vehicles slope up or down, the effect of friction need to be performed.

 

2. Other functions:

(1) When vehicles slope up, if the speed is slow and the gear engaged at high position, the effect of engine closure need to be performed.

(2) When vehicles slope down, if the gear is engaged at low position, the braking of engine need to be performed

 

Hoping to hear from you soon.

Have a good day

Link to comment

Hi. You can inherit "Car" class and override "onUpdate" function to implement your clutch system. Also you can add more methods to your child class. If you need some logic during gear shifting you can override "incGear" and "decGear" functions.

Link to comment
×
×
  • Create New...