Possible to have an articulated vehicle?

Ask questions, discuss ideas, get answers
Post Reply
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Possible to have an articulated vehicle?

Post by fo0k »

I have always thought impossible but do you think a spring could somehow achieve this?

Basically have a vehicle towing something.
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Possible to have an articulated vehicle?

Post by Apache Thunder »

BFV has a object class that does this. Tow hooks or something. However BF42 doesn't have this obviously.

Only way I can think of right now is via a spawner that holds the vehicle to the back of your vehicle doing the towing. However this means that you can't tow vehicles that are no longer on the spawn or when someone gets in the vehicle and moves it. The collision system is probably too buggy to beable to have a vehicle stay reliably on a host collision mesh without making it a bit large or box like.
ImageImageImage
I have cameras in your head!
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post by freddy »

cant think of anything either, a spring moves in just one direction i think and if one use rotational bundles they would need player input to move

sure one could use a spawner to tow a pco with, but it would always be "stuck" in the same relative position

maybe it could work somewhat with two or more springs, one for x and one for y?
Jeronimo
Posts: 196
Joined: Sun Dec 27, 2009 8:55 pm
Location: Germany
Contact:

Re: Possible to have an articulated vehicle?

Post by Jeronimo »

This could be done quite similar to a tank actually. You'd just move the tower to the back of the vehicle, set the center of rotation to the trailer coupling, give the rotational bundle of the tower some wheels and mobile physics and voilà, you have a little trailer at the back of your truck. The y-axis of the mouse can be used to steer the whole bundle.

Another idea: Create a vehicle with a coupling and a trailer as two independent PCOs, shape the coupling as a circle and put small invisble wheels with springs onto it. The coupling should be able to move up and down (like it's down with the forklift in DC etc.) The trailer then needs to have something than can slip into the coupling and like that gets tied to the tractor, without easily falling of. Because of the circle shape, the trailer would actually not be pulled put pushed by the vehicle, which is a simple collision and therefore should be absolutely doable for the engine... Additionally, giving the coupling a collision damage of 0 could prevent it from breaking off on ferocious driving ^^
Image
SK_Scorpion
Posts: 3
Joined: Fri Jul 16, 2010 6:01 pm

Re: Possible to have an articulated vehicle?

Post by SK_Scorpion »

Has anyone actually tried these ideas? I want to achieve this but has so far not succeeded in making a coupling which acts like its supposed to. And I guess adding alot of friction to surfaces or the sticky code does not work? The problem with springs are that they react in all directions if enough force is applied to it. Will try some more though but it would be nice to hear if anyone got some new ideas or have succeeded in making a articulated vehicle. And I don't want a trailer that moves when I'm standing still when steering.
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: Possible to have an articulated vehicle?

Post by fo0k »

SK_Scorpion wrote:And I don't want a trailer that moves when I'm standing still when steering.

lolled.


Yeah I want to also see this. I do think a loose spring could somehow achieve it but have never got around to try it.

What I envision:

Car has a 5th 'wheel' object on the back of it.. where the coupling would be. the wheel is attached with a weak spring. The wheel is positioned 'flat'. e.g. looks like a wheel thats fallen over on its side.

The actual wheel object looks nothing like a wheel though and is in fact a model of the trailer.. the trailer has 2 normal free rolling wheels positioned where they would normally be.

the car moves and the weak spring pulls the 'wheel' which is the trailer and the free rolling wheels roll along behind it..

This all works perfectly without any glitching, crashes or strange behavior. ;)

that weak spring allows movement in all directions as you said.


The reason I have not tried it is because I cant face 4.5 million CTD's just to find out it really, absolutely, totally cannot work. :(

but I think it can.... I think it can.
SK_Scorpion
Posts: 3
Joined: Fri Jul 16, 2010 6:01 pm

Re: Possible to have an articulated vehicle?

Post by SK_Scorpion »

@fo0k Thanks for your quick response. Sounds promising but I've never got a horizontal wheel to work as intended (roll and have tension in the horizontal plane). Will try again now when new hope has arrived. Appreciated. :)
Coroner47
Posts: 213
Joined: Tue Nov 24, 2009 5:11 am
Location: Canada

Re: Possible to have an articulated vehicle?

Post by Coroner47 »

I was working on some stuff with skeletons & remembered this post. Could you use a skeleton like how the soldiers hands stick to a steering wheel? Just a quick thought.
Image
Pray hard, die fast
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Possible to have an articulated vehicle?

Post by Apache Thunder »

It's impossible as far as I know to have a object stick to a skeleton part like you would a handweapon or soldier part. The engine doesn't allow it outside the soldier class. Sorry. :(
ImageImageImage
I have cameras in your head!
SK_Scorpion
Posts: 3
Joined: Fri Jul 16, 2010 6:01 pm

Re: Possible to have an articulated vehicle?

Post by SK_Scorpion »

@apache_thunder Guess we can't kill a soldier and use him as a trailer hitch. ;)

I'll try the tilted wheel theory then.
Post Reply