Skip to content

Instantly share code, notes, and snippets.

View eyeEmotion's full-sized avatar

eyeEmotion eyeEmotion

View GitHub Profile
@eyeEmotion
eyeEmotion / camera.gd
Last active April 23, 2020 20:50
Camera dynamics - trying to add panning view to see more where you are steering to.
extends Camera
export (NodePath) var follow_this_path = null
export var target_distance = 4.0
export var target_height = 1.0
var follow_this = null
var last_lookat
var look_around = 0
@eyeEmotion
eyeEmotion / car_v2.gd
Created March 30, 2020 13:22
Car controls (extending Vehiclebody)
extends VehicleBody
const STEER_SPEED = 1
const STEER_LIMIT = 0.4
var steer_target = 0
var velocity = Vector3()
var fwd_mps = 0
export var engine_force_value = 200 #set to 350 in editor because of Weight Rigidbody set to 1000