Poltergeist Azarov Posted April 6, 2014 Share Posted April 6, 2014 Hello,When I enlarge my vehicle, then lean and smiliar movements changes alot. So then forces me to change some various values. Is there a simple way to avoid that drudgery? I tried to change gravity of the vehicle but it didnt work. Link to comment Share on other sites More sharing options...
Madelaine McMasters Posted April 6, 2014 Share Posted April 6, 2014 Hi Poltergeist, It's all about mass, and as you increase the size of the vehicle, it becomes more massive (and quickly so, x^^3! or x*y*z). Add a scale factor to all the motors that's the cube of the ratio of your vehicle size to the reference size. It's been ages since I've done a vehicle, but I think this is the least fiddly way. And you could make the scale factor adjust automatically by querying the size of one axis of the root prim if you preserve aspect ratio when scaling the thing or all three if you don't. Link to comment Share on other sites More sharing options...
Poltergeist Azarov Posted April 6, 2014 Author Share Posted April 6, 2014 Hi Madelaine, Is this scale factor can be made by llGetMass to make it simple then? Link to comment Share on other sites More sharing options...
Madelaine McMasters Posted April 6, 2014 Share Posted April 6, 2014 Yeah, that should do it. Make that call on your reference vehicle and save the result as a constant (initialized variable). Then, on_rez, get the current mass and divide it by that to get your scale factor. Gravity will take care of itself, so no need to apply the scale factor there, if you're using gravity. Link to comment Share on other sites More sharing options...
Poltergeist Azarov Posted April 6, 2014 Author Share Posted April 6, 2014 Let me give it a try then. Thanks Link to comment Share on other sites More sharing options...
Poltergeist Azarov Posted April 6, 2014 Author Share Posted April 6, 2014 I think I am not really following the right way, I dont know... When I increase mass to 950, right value is to get straight behaviour: VEHICLE_LINEAR_MOTOR_OFFSET, <0.0,-12.0,-30.0> Then decided to use -(llGetMass/30) instead of -30. It did not really work when I decreased Mass to around 700. Because the right values (which gives me same behaviours) are: VLMO, <0.0,-6.0,-12.0> something when llGetMass returns 700. I didnt find a way to calculate that, so far. :\ Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now