PcoWSkbVqDnWTu_dm2ix
The information on this page may no longer be accurate. To see the latest, go to our new and improved documentation. You can also learn more about the future of documentation.

Building a Basic Car

Building a Basic Car

30 min

Setup

1. Download the Kit

×1 ×1 ×1
×1
Wheel
WheelMount
Base
DriveScript

2. Show Constraint Details

3. Turn Off Collisions


Create Axle

1. Create Cylindrical Constraint

A. Select Cylindrical Constraint

B. Create Constraint

2. Set Cylinder Properties

Properties - CylindricalConstraint "CylindricalConstraint"
Cylinder
AngularActuatorType Motor
AngularLimitsEnabled
InclinationAngle 90

3. Enable Slider Limits

Slider
ActuatorType None
LimitsEnabled

4. Set Lower and Upper Limits

Limits
LowerLimit -1
Restitution 0
UpperLimit 1

Create Shock Absorber

1. Create Spring Constraint

A. Select Spring Constraint

B. Create Constraint

2. Set Spring Properties

Properties - SpringConstraint "SpringConstraint"
Spring
Damping 400
FreeLength 2.2
LimitsEnabled
MaxForce inf
Stiffness 30000

Assemble Wheel Unit

1. Move Wheel and Mount Together

2. Test Shock Absorber

A. Anchor Wheel Mount

Properties - Part "WheelMount"
Behavior
Anchored
Archivable
CanCollide
CollisionGroupId 0
Locked
Massless

B. Test Shock

C. Un-Anchor Wheel Mount

Properties - Part "WheelMount"
Behavior
Anchored
Archivable
CanCollide
CollisionGroupId 0
Locked
Massless

3. Group Wheel and Mount


Duplicate Wheels

1. Move Wheel Against Base

2. Duplicate/Move Back Wheel

3. Duplicate/Move Front Wheels


Weld Back Wheels to Base

1. Create Weld Constraints

A. Show Weld Details

B. Select Weld Constraint

C. Create Constraints

Reminder – Confirm Welded Parts
Properties - WeldConstraint "WeldConstraint"
Parts
Part0 WheelMount
Part1 Base


Hinge Front Wheels to Base

1. Create Hinge Constraints

A. Select Hinge Constraint

B. Create Constraints

2. Set Hinge Properties (Both Sides)

A. Select Both Hinges

B. Set Hinges as Servos

Properties - HingeConstraint "HingeConstraint"
Hinge
ActuatorType Servo
LimitsEnabled

C. Set Servo Properties

Servo
AngularSpeed 5
ServoMaxTorque 100000
TargetAngle 0

3. Move Hinge Attachments


Finishing Up

1. Rename Wheels

Explorer
Filter workspace (Ctrl+Shift+X)
Workspace
Camera
Terrain
Obstacles
DriveScript
WheelBL
WheelBR
WheelFL
WheelFR
Base
Baseplate

2. Test the Chassis


Drive!

Tags:
  • building
  • car
  • driving
  • racing
  • constraints
  • vehicle