public static void Set3DAttributes(this AcCarPlayer player, string path, Vector3 forward, Vector3 position, Vector3 up, Vector3 velocity) { var forwardSound = forward.ToSoundVector(); var positionSound = position.ToSoundVector(); var upSound = up.ToSoundVector(); var velocitySound = velocity.ToSoundVector(); player.Set3DAttributes(path, forwardSound, positionSound, upSound, velocitySound); }
public static void Set3DAttributes(this AcCarPlayer player, string[] path, Vector3 forward, Vector3 position, Vector3 up, Vector3 velocity) { var forwardSound = forward.ToSoundVector(); var positionSound = position.ToSoundVector(); var upSound = up.ToSoundVector(); var velocitySound = velocity.ToSoundVector(); for (var i = 0; i < path.Length; i++) { var p = path[i]; player.Set3DAttributes(p, forwardSound, positionSound, upSound, velocitySound); } }
public void UpdateCarPosition(Vector3 forward, Vector3 position, Vector3 up, Vector3 velocity) { _player.Set3DAttributes(_prefix + "door", forward, position, up, velocity); }