driver is Connection now
This commit is contained in:
parent
0ff82f3eac
commit
ba9afba4d1
42
Assets/Materials/emo.vmat
Normal file
42
Assets/Materials/emo.vmat
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
// THIS FILE IS AUTO-GENERATED
|
||||||
|
|
||||||
|
Layer0
|
||||||
|
{
|
||||||
|
shader "shaders/complex.shader"
|
||||||
|
|
||||||
|
//---- Rendering ----
|
||||||
|
F_DO_NOT_CAST_SHADOWS 1
|
||||||
|
|
||||||
|
//---- Ambient Occlusion ----
|
||||||
|
g_flAmbientOcclusionDirectDiffuse "0.000"
|
||||||
|
g_flAmbientOcclusionDirectSpecular "0.000"
|
||||||
|
TextureAmbientOcclusion "materials/default/default_ao.tga"
|
||||||
|
|
||||||
|
//---- Color ----
|
||||||
|
g_flModelTintAmount "1.000"
|
||||||
|
g_vColorTint "[1.000000 1.000000 1.000000 0.000000]"
|
||||||
|
TextureColor "textures/pd7aum1vufg.jpg"
|
||||||
|
|
||||||
|
//---- Fade ----
|
||||||
|
g_flFadeExponent "1.000"
|
||||||
|
|
||||||
|
//---- Fog ----
|
||||||
|
g_bFogEnabled "1"
|
||||||
|
|
||||||
|
//---- Metalness ----
|
||||||
|
g_flMetalness "0.000"
|
||||||
|
|
||||||
|
//---- Normal ----
|
||||||
|
TextureNormal "materials/default/default_normal.tga"
|
||||||
|
|
||||||
|
//---- Roughness ----
|
||||||
|
g_flRoughnessScaleFactor "1.000"
|
||||||
|
TextureRoughness "materials/default/default_rough.tga"
|
||||||
|
|
||||||
|
//---- Texture Coordinates ----
|
||||||
|
g_nScaleTexCoordUByModelScaleAxis "0"
|
||||||
|
g_nScaleTexCoordVByModelScaleAxis "0"
|
||||||
|
g_vTexCoordOffset "[0.000 0.000]"
|
||||||
|
g_vTexCoordScale "[100.000 100.000]"
|
||||||
|
g_vTexCoordScrollSpeed "[0.000 0.000]"
|
||||||
|
}
|
||||||
22
Assets/frictions/High-Performance Road Tire.whfric
Normal file
22
Assets/frictions/High-Performance Road Tire.whfric
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"Longitudinal": {
|
||||||
|
"B": 18,
|
||||||
|
"C": 1.5,
|
||||||
|
"D": 1.5,
|
||||||
|
"E": 0.3
|
||||||
|
},
|
||||||
|
"Lateral": {
|
||||||
|
"B": 12,
|
||||||
|
"C": 1.3,
|
||||||
|
"D": 1.8,
|
||||||
|
"E": -1.8
|
||||||
|
},
|
||||||
|
"Aligning": {
|
||||||
|
"B": 2.8,
|
||||||
|
"C": 2.1,
|
||||||
|
"D": 0.1,
|
||||||
|
"E": -2.5
|
||||||
|
},
|
||||||
|
"__references": [],
|
||||||
|
"__version": 0
|
||||||
|
}
|
||||||
22
Assets/frictions/aboba.whfric
Normal file
22
Assets/frictions/aboba.whfric
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"Longitudinal": {
|
||||||
|
"B": 0,
|
||||||
|
"C": 1,
|
||||||
|
"D": 1,
|
||||||
|
"E": 0.3
|
||||||
|
},
|
||||||
|
"Lateral": {
|
||||||
|
"B": 1,
|
||||||
|
"C": 1,
|
||||||
|
"D": 1,
|
||||||
|
"E": 0.3
|
||||||
|
},
|
||||||
|
"Aligning": {
|
||||||
|
"B": 2.8,
|
||||||
|
"C": 2.1,
|
||||||
|
"D": 0.1,
|
||||||
|
"E": -2.5
|
||||||
|
},
|
||||||
|
"__references": [],
|
||||||
|
"__version": 0
|
||||||
|
}
|
||||||
BIN
Assets/textures/pd7AUm1VuFg.jpg
Normal file
BIN
Assets/textures/pd7AUm1VuFg.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 106 KiB |
@ -3,11 +3,9 @@
|
|||||||
namespace VeloX;
|
namespace VeloX;
|
||||||
public class InputResolver
|
public class InputResolver
|
||||||
{
|
{
|
||||||
public GameObject Driver { get; internal set; }
|
public Connection Driver { get; internal set; }
|
||||||
|
|
||||||
|
|
||||||
private bool IsDriverActive => Driver.IsValid();
|
|
||||||
|
|
||||||
|
private bool IsDriverActive => Driver is not null;
|
||||||
|
|
||||||
public Vector2 MouseDelta => IsDriverActive ? Input.MouseDelta : default;
|
public Vector2 MouseDelta => IsDriverActive ? Input.MouseDelta : default;
|
||||||
public Vector2 MouseWheel => IsDriverActive ? Input.MouseWheel : default;
|
public Vector2 MouseWheel => IsDriverActive ? Input.MouseWheel : default;
|
||||||
@ -40,8 +38,6 @@ public class InputResolver
|
|||||||
public void StopAllHaptics()
|
public void StopAllHaptics()
|
||||||
{
|
{
|
||||||
if ( IsDriverActive )
|
if ( IsDriverActive )
|
||||||
{
|
|
||||||
Input.StopAllHaptics();
|
Input.StopAllHaptics();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
using Sandbox.Audio;
|
using Sandbox.Audio;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
|
||||||
using VeloX.Audio;
|
using VeloX.Audio;
|
||||||
using static VeloX.EngineStream;
|
using static VeloX.EngineStream;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user