New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable power to wheel when beams[detacher_group] breaks #920

Closed
Michael10055 opened this Issue May 14, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@Michael10055
Contributor

Michael10055 commented May 14, 2016

The detaching wheels on my buggy I'm been working on got me thinking, power to a wheel could be disabled when beams in a detacher_group breaks.
Ulteq and I talked about it on the Gitter chat:

Hotrod55 @Hotrod55 18:08
The detaching wheels on the buggy I'm working on got me thinking...
Would it be possible to disable power to a wheel if a certain beam breaks?
It could be linked to a detacher_group

ulteq @ulteq 18:11
Should be possible, yes.
Maybe open a GitHub issue for it (including a proposed truckfile syntax)?

Hotrod55 @Hotrod55 18:20
I'll open a issue for it. I'm thinking it could be a addition to the "axles" section:
http://docs.rigsofrods.org/vehicle-creation/fileformat-truck/#axles
The value could be a valid detacher_group number

ulteq @ulteq 18:23
An axle always drives two tires?

Hotrod55 @Hotrod55 18:26
Yes
Maybe it could allow just one tire

ulteq @ulteq 18:27
"If no axle section is defined the old model of equal power distribution is used."
Could we add a section in between wheels and axles that handles the breaking.
I think it should be on a per wheel basis.
Not per axle.

Hotrod55 @Hotrod55 18:28
Yeah

The issue with axles is that it defines two wheels, not just one wheel.
If we are going to make it a addition to the axles section, it could look like this: (I'm not the best coming up with syntax 😄)

beams
;front right wheel
set_beam_defaults 12500000, 28600, 1860000, 6968000
detacher_group 1
1, 2, i
3, 4, i
5, 6, i
7, 8, i
detacher_group 0
;front left wheel
detacher_group 2
9, 10, i
11, 12, i
13, 14, i
15, 16, i
detacher_group 0
[...etc....]

;meshwheels section grabbed from truck file wiki page with edits to the wheel node numbers
meshwheels 
;tire_radius, rim_radius, width, numrays, node1, node2, snode, braked, propulsed, arm,  mass,   spring, damping, side,               meshname         material
        0.35,       0.21,   0.5,      14,    1,    2,    9999,      1,         1,  18, 200.0, 300000.0,  2000.0,    l, dodgechargerwheel.mesh dodgechargerband
        0.35,       0.21,   0.5,      14,    3,    4,    9999,      1,         1,  26, 200.0, 300000.0,  2000.0,    r, dodgechargerwheel.mesh dodgechargerband
        0.35,       0.21,   0.5,      14,    5,    6,  9999,      1,         0,  53, 200.0, 350000.0,  2000.0,    l, dodgechargerwheel.mesh dodgechargerband
        0.35,       0.21,   0.5,      14,    7,    8,  9999,      1,         0,  50, 200.0, 350000.0,  2000.0,    r, dodgechargerwheel.mesh dodgechargerband

axles
;wheel1,    wheel2,   diff, [detacher]_group1, [detacher]_group2
;front axle
w1(1 2), w2(3 4), d(sl), w1group(1), w2group(2)
;rear axle
w1(5 6), w2(7 8), d(ll), w1group(3), w2group(4)

The group value would be the number of the detacher group.
http://docs.rigsofrods.org/technical/fileformat-truck/#detachergroup

If we are going to make a new section completely, I'm not sure how that would be formatted.

Just some thoughts. 😄

@ulteq

This comment has been minimized.

Show comment
Hide comment
@ulteq

ulteq May 29, 2016

Contributor

If we are going to make a new section completely, I'm not sure how that would be formatted.

Maybe like this:

wheeldetachers
;wheel_id, detacher_group
1, 1
2, 2

Edit: I think we need separate syntaxes for old-style (without axles) and new-style (with axles) wheels.

Contributor

ulteq commented May 29, 2016

If we are going to make a new section completely, I'm not sure how that would be formatted.

Maybe like this:

wheeldetachers
;wheel_id, detacher_group
1, 1
2, 2

Edit: I think we need separate syntaxes for old-style (without axles) and new-style (with axles) wheels.

ulteq added a commit to ulteq/rigs-of-rods that referenced this issue Oct 9, 2016

[Feature] New 'wheeldetachers' section
Allows to disable the propulsion of detached wheels

Fixes: RigsOfRods#920

ulteq added a commit to ulteq/rigs-of-rods that referenced this issue Oct 9, 2016

[Feature] New 'wheeldetachers' section
Allows to disable the propulsion of detached wheels

Fixes: RigsOfRods#920
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment