wiki.sine.space | sinespace

Difference between revisions of "Vehicles"

From wiki.sine.space
Jump to: navigation, search
(Land)
Line 2: Line 2:
  
 
==Land==
 
==Land==
 +
 +
'''Collider'''
  
 
Select the main mesh for your vehicle and add a collider.
 
Select the main mesh for your vehicle and add a collider.
Line 18: Line 20:
 
[[File:Box_collider_settings.jpg]]
 
[[File:Box_collider_settings.jpg]]
  
 +
 +
'''Car Vehicle Script'''
  
 
Attach the Car Vehicle component to your vehicle.
 
Attach the Car Vehicle component to your vehicle.

Revision as of 19:57, 22 June 2016

There are four types of vehicles in the Space virtual world platform;

Land

Collider

Select the main mesh for your vehicle and add a collider.

Ensure the collider does not overlap with the wheels.

The wheels will have their own colliders applied by the Car Physics script and those colliders should not overlap the body collider.


Box collider.jpg


You can adjust the collider size manually by clicking the Edit Collider button and grabbing the small green dot in the middle of each surface, or by entering size and position parameters in the Inspector.


Box collider settings.jpg


Car Vehicle Script

Attach the Car Vehicle component to your vehicle.

This will add three scripts to the object;

Car Physics


Car physics.jpg


Vehicle Rigid Body


Vehicle rigid body.jpg


Car Physics


Car vehicle script.jpg

Air

PENDING

Water

PENDING

Hover

PENDING