You are viewing a potentially older version of this package. View all versions.
TCTC-TurretsPhysicsPatch-0.0.5 icon

TurretsPhysicsPatch

Changes the bullet physics related to motion. More specificaly changes drag to be quadratic and forces a fixed update rate for consistancy between players and shots.

Date uploaded 3 years ago
Version 0.0.5
Download link TCTC-TurretsPhysicsPatch-0.0.5.zip
Downloads 3681
Dependency string TCTC-TurretsPhysicsPatch-0.0.5

This mod requires the following mods to function

BepInEx-BepInExPack_ROUNDS-5.4.1900 icon
BepInEx-BepInExPack_ROUNDS

BepInEx pack for ROUNDS. Preconfigured and ready to use.

Preferred version: 5.4.1900

README

Turret's Physics Patch

This patch changes the update method in MoveTransform to a more accurate equation of motion, and changes the drag to be quadratic instead of constant. Also locks the rate at which the bullets update their position at 70 hz.

If you notice any issues, please post in the rounds modding discord. I will look at the bug reports channel from time to time.

changes

EOM: at^2 + v0t + s0 --> 0.5at^2 + v0t + s0 Drag: a = D --> a = DV^2 / 100 Update rate: per frame --> 70 hz

CHANGELOG

Turret's Physics Patch

V 0.2.0

Added acceleration support - function for altering acceleration equation - Now works with functions instead of classes

changed the update rate - 90 hz to 70 hz

changed the drag coefficient conversion - factor from 0.015 to 0.0075

changed the integration scheme - from forward euler to Runge Kutta 4

removed fix for high bullet velocities with drag - Reason: new itergration scheme has a higher speed tolerance.

removed unnessesary dependancies - UnboundLib - MMHook - ModdingUtils

V 0.1.0

(not published)

Added acceleration support - Dirac pulse (2 overloads) - square pulse - step - custom can be done using the class

changed the drag coefficient conversion - factor from 0.01 to 0.015

changed the update rate - 70 hz to 90 hz

Added a fix for high bullet velocities with drag - If the change in velocity due to drag is greater than the velocity then velocity will be reduced by 70% instead.

V 0.0.5

initial release