Skip to content

Calculate suspension velocity for ac#40

Open
wasabinator wants to merge 1 commit intoSpacefreak18:masterfrom
wasabinator:ac_suspension_velocity
Open

Calculate suspension velocity for ac#40
wasabinator wants to merge 1 commit intoSpacefreak18:masterfrom
wasabinator:ac_suspension_velocity

Conversation

@wasabinator
Copy link
Copy Markdown
Contributor

The suspension velocity in the sim data isn't currently plumbed through to provide haptic effects, so this change implements that.

The changes I raised against simapi for the acmapper allow the effects to work from AC.

Example config used to test

{
    device       = "Sound";
    effect       = "SuspensionVelocity";
    tyre         = "FrontLeft";
    devid        = "alsa_output.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.analog-stereo";
    pan          = 0;
    fps          = 60;
    threshold    = 0.2;
    channels     = 2;
    volume       = 70;
    modulation   = "frequency";
    frequency    = 35;
    frequencyMax = 55;
    duration     = 0.15;
    noise        = 3;
}

@Spacefreak18
Copy link
Copy Markdown
Owner

This is great.

Like I was saying in the simapi commit, if you think this is good, I say we just make this the default way to do suspension effects. So that would eliminate much of the boilerplate you had to do for this. Just use your new simdata->suspensionvelocity[] variable where necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants