wiki.sine.space | sinespace

Difference between revisions of "Vehicles"

From wiki.sine.space
Jump to: navigation, search
(Created page with "There are four types of vehicles in the Space virtual world platform; ==Land== PENDING ==Air== PENDING ==Water== PENDING ==Hover== PENDING")
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
==Land==
 
==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.
 +
 +
 +
[[File: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.
 +
 +
 +
[[File: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'''
 +
 +
 +
[[File:Car_physics.jpg]]
 +
 +
 +
Mouse Control
 +
 +
Control Locked
 +
 +
Min Speed
 +
 +
Check for active
 +
 +
Wheel FR / FL / BR / BL
 +
 +
Suspension distance
 +
 +
Springs
 +
 +
Dampers
 +
 +
Wheel radius
 +
 +
Torque
 +
 +
Brake Torque
 +
 +
Wheel weight
 +
 +
 +
 +
'''Vehicle Rigid Body'''
 +
 +
 +
[[File:Vehicle_rigid_body.jpg]]
 +
  
 
PENDING
 
PENDING
 +
 +
 +
'''Car Physics'''
 +
 +
 +
[[File:Car_vehicle_script.jpg]]
 +
 +
 +
Add the animation track from an FBX file here to apply a pose to the user's avatar while using the vehicle.
  
 
==Air==
 
==Air==
Line 16: Line 87:
  
 
PENDING
 
PENDING
 +
 +
{{Creation Navbox}}

Revision as of 15:28, 21 August 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


Mouse Control

Control Locked

Min Speed

Check for active

Wheel FR / FL / BR / BL

Suspension distance

Springs

Dampers

Wheel radius

Torque

Brake Torque

Wheel weight


Vehicle Rigid Body


Vehicle rigid body.jpg


PENDING


Car Physics


Car vehicle script.jpg


Add the animation track from an FBX file here to apply a pose to the user's avatar while using the vehicle.

Air

PENDING

Water

PENDING

Hover

PENDING