Search the Community
Showing results for tags 'suspension'.
Found 4 results
Good evening, I have been trying to implement physX into my custom airplane, but something is clearly wrong. Not sure if it is a common mistake, so for the time being I'll show you a video of my problem. Whenever I start a game with the airplane, either Editor or Virtual Arsenal, the plane starts moving forwards on it's own accord, with the engine Off. The thing is, the door and cabin close, and the wheels do rotate, so it's not like the model is just "slipping". Here's the vid: https://youtu.be/NcIdnuizh_Q Not sure if it's some basic command I've missed or what but it's driving me crazy. Any help would be much appreciated. Thanks for your time!
I'm having trouble with the visual suspension animations matching the actual suspension of a vehicle I created. To elaborate, it's a four-wheeled buggy with fairly big wheels for its body. When driving, the body overall reacts to the terrain as expected within the parameters of the wheel settings in the config. Also, the wheels turn properly in all ways they should (i.e.: steering, driving, and braking). The suspension, on the other hand, moves only very minimally, but it is indeed moving. I have set the maxDroop/maxCompression and offsets to a high value, but this only puts the wheels into the ground. I tried a low value, but then they are only hovering. With an offset value where the wheels actually touch the ground without sinking, it is only good while the vehicle is not in motion. When taking a corner, for example, the outer wheels sink into the ground and the inner wheels come up. There is a slight visual effect, but it is not enough to keep up with the physical effect. MODEL (p3d): I checked the named selections of all LODs in the model, comparing them to the vanilla BIS Offroad truck (listed via eliteness) as well as my own LM002 model, and everything in the new model looks in place. There are some minor discrepancies, though: In the buggy, the rear wheels are positioned a little lower than the front wheels. The body and all components are aligned to the horizon, with the intention of everything leaning forward once the wheels touch the ground. Another small detail is that the front two damper_land_axis are angled up and slightly rearward, while the rear two damper_land_axis are angled up and slightly forward. The front and rear wheels converge as they compress. I don't see how these minor differences would affect the visual suspension, but I mention them in case somehow they do. Also, when I tried the suspension paths strictly vertical, the problem remained. Leaning turn in the problem vehicle The script was borrowed and modified from another vehicle I made in which it was working: Leaning turn in the working vehicle The two vehicles together I'm including the scripts in the likely event that I overlooked something. Here's the config for the buggy: Here's the buggy's model file: Notes: Changing values of the wheel settings and damper settings in the scripts has an impact on the handling and stability of the vehicle (as expected), but very little impact on the visual performance (as not expected). The most noticeable change is from increasing/decreasing the range of the offsets and maxDroop/maxCompression. It will visibly raise/lower the wheels and steering parts initially, but when moving it's very hard to notice any animation.
scotg posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTINGWHAT AM I TALKING ABOUT? The purpose of this, in theory, is to have more natural-looking suspension animations, using the weighting and IK that characters benefit from. This would allow larger vehicles with highly visible suspension parts to be represented in a more accurate manner, and it would give modders the chance to enhance their existing vehicles. There's probably a bit more involved in the set up process than what I describe, but here's the basic rundown: Step 1 Put all the moving suspension components of a vehicle into a separate p3d, and give it a custom bone hierarchy, similar to a character set up. Step 2 p3d alignment. Place a proxy in the vehicle's main model, in all pertinent LODs, correlating to where the pin of the suspension model is. Step 3 Create a script that tells the end moving parts of the suspension to follow certain vehicle memory points. This is the part that would stump me, because my specialty is in the artwork, and not the scripting. It would be like including a soldier already in the vehicle, even before a player or AI entered, and that soldier could never leave the vehicle (apart from being written into a destruction script). In the same way that his hands follow the steering wheel, pilot stick, or throttle stick, or how his feet can follow the pedals, so too would the suspension model parts follow the suspension memory points, retaining their IK linkage. Notes - The actual functional suspension (that is, the coded parts that really influence the vehicle behavior and performance) will still use the same basic translation animation. - The IK suspension would only be for eye-candy, and should not stray too far from the path of the actual suspension. - If the technique works well, without using too much processing power, then it could be used in ANY animated parts - not just the suspension. Examples: The TOW linkage on the M2A2 Bradley. Aircraft flaps, rudders, ailerons, etc. Hatch/canopy/door animations Folding/packing stationary weapons. - For low-poly (distant) LODs, consider using the standard suspension animation method, or exclude it altogether. - A reminder that this is all theoretical, currently. If anyone has had success with this, or if you think you can give it a try, then please give your steps, ideas, or input freely!
Update 19August2016: Ready to prep for an initial release. I've tested the vehicle in the Editor and Virtual Garage. It has come along nicely: Suspension is working. Lights are great. Shadows look nice. LODs transition really well. 8 randomized colors. There are some minor adjustments needed: Instruments aren't aligned to actual value, especially the speedo. No firegeom LOD. Using a stock Driver animation, so hands and feet are a little off. Could benefit from a little more texture detail. I'd like to eventually implement a few more extra details - like door animations and whatnot. No passenger positions in truck bed, yet. Apart from the few known issues it's good for an initial release if people want to start playing with it, so what's my next step to release it? I know it's not protected, so what files do I need to create, and how do I do that? Any help, guidance, encouragement is much appreciated! Update 20July2016: Most major issues are reasonably resolved, although things are far from perfect. Currently, the movement and animations of the vehicle are more refined - not at all to a match with real life performance, but at least giving a better illusion that this is a functional vehicle. The textures are getting better - more detailed and less texelized (patches of 4 pixels blocking together after optimizing). The lights function well, and I dare say the exterior lights look far better than the vanilla vehicles' lights (except where there is over-exposure on the grille from the two headlights merging). The suspension and steering could be better, but they function well. I need to tighten the turn radius of the whole LM002, but also lessen the turn angle of the individual steer wheels. For suspension there are a few things that I'd really love to accomplish... The named selections for all the suspension functions are named correctly, and the tire sizes match so that the tires are not floating/sinking. I've assigned certain suspension pieces such that there *sort of* an appearance of working parts, but really they are just flexing and stretching - something that rigid mechanical parts don't usually do. If you're focused on the game and not looking too hard, it'll be fine for peripheral animation. Should there ever be a raised suspension version of this vehicle (or any other vehicle), then this method would be far more noticeable. I still wonder if there is another way... Here is the same initial YouTube video going over the old problems, most of which have been resolved: LM002 WIP Meanwhile, here's a preview pic in-game: