Jump to content

[SOLVED] Adding Different Vehicle to Unigine Driving Examples


photo

Recommended Posts

Hi all,

 

I have a project similar to Unigine Driving Examples.I want to add some different vehicles to Unigine Examples.

What do i have to do to add my vehicle models into the Unigine Example???Can you give some advice or some strict instructions about it???

 

Link to comment

Hi,

 

Basically, all you need to do is:

  1. Create your car model (wheels must be separate from body) and construct Node from its meshes (please, check example of object hierarcy). You also can check already existed nodes and it's hierarchy directly inside the Unigine Editor;
  2. Setup physics Body/Shapes for car body and wheels (you can just copy settings from already existed cars);
  3. Setup materials (for example, different colors for car);
  4. Setup properties (for connection between material (color) and car);
  5. Create new Entity type inside Game Framework (just inherit from Car base class) and use node from the previous steps as a car model;
  6. Setup new car Entity (adjust car settings and properties settings).

I believe it would be easier with a basic knowledge about Game Framework plugin: https://developer.unigine.com/en/docs/1.0/scripting/scripts/game_framework/and basic information about models import: https://developer.unigine.com/en/docs/1.0/tutorials/add_object/.

 

Thanks!

  • Like 1

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
  • 4 years later...

First time here. I have been using Unity 3d and Unreal Engine for some time. I have trial version of Unigine. I tried to click on the links in the second post but I got "403 Forbidden" messages. I wish to create a driving game.

Link to comment

Hi Jefferey,

This thread is 4 years old and the links go to the Unigine 1 docs. Old versions are available for those users who already had Unigine 1.

If you want to model a vehicle take a look at physics samples. Go to the SDK Browser, open Samples -> Unigine Script -> Physics -> check wheel and suspension joints. You may also find this article useful.

I also would like to recommend our video tutorials: https://developer.unigine.com/en/docs/2.7.3/videotutorials/

Thank you!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment

I didn't know that the thread is 4 years old. I tried the tutorial that is in the article and it worked. That tutorial used code to create the body and wheels. Is it possible to modify the code so that it uses the body and wheels that I imported into Unigine editor? Is it possible to use joysticks, gamepads, and wheel/pedal sets?

Link to comment
23 minutes ago, jeffrey.morris said:

That tutorial used code to create the body and wheels. Is it possible to modify the code so that it uses the body and wheels that I imported into Unigine editor?

Yes, you can do it in UnigineEditor. After required models are imported configure joints in physics section: https://developer.unigine.com/en/docs/2.7.3/principles/physics/joints/#suspension

21 minutes ago, jeffrey.morris said:

Is it possible to use joysticks, gamepads, and wheel/pedal sets?

Yes, you can use different devices for input. Please check the corresponding section in UnigineScript samples. This may be helpful: https://developer.unigine.com/en/docs/2.7.3/code/uniginescript/scripts/input

Thanks.

 

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
×
×
  • Create New...