I'm trying to find a creative way to get the shock absorbers that are attached to the wagons and bogies of my current project to behave better. Right now if I attach them to the bogie or the wagon, once the train is on curved track, one end of the shock absorber pulls away from the mounting point at the other end (obviously).
I want to use the GetCurvatureAhead function to twist the shock absorbers based on the curve radius (plus or minus some yet-to-be-determined calculation) so they look like they're still attached at both ends.
All I need is a setobjectposition type command in the scripts but I've not found anything like that. The only option I have at the moment is to make an animation for each shock absorber, then try to pick a position in that animation based on the track radius. Which is a gigantic pain in the . and is so complicated right now that I think the sheer complexity of it far outweighs the visual result.
Anyone with any better ideas ?
Thanks.
Setting component heading, pitch, roll with scripts
General discussion about Train Simulator, your thoughts, questions, news and views!
Moderator: Moderators
Return to “[TS] General Discussion”
Jump to
- Site Administration
- ↳ Site Admin Queries
- ↳ UKTS Forum Rules
- ↳ UKTSLive! Road Shows
- ↳ General Discussion
- ↳ Old Deleted Forums
- ↳ Blog - Rick Selby
- ↳ Blog - Pat Cook
- ↳ Blog - Jamie Osbourne
- ↳ Blog - Brett Schnepf
- ↳ Blog - Mike Gilbert
- ↳ Blog - Tamara Williams
- ↳ MSTS 2 Home Page
- ↳ Microsoft Train Simulator 2
- ↳ Virtual Transport Role Playing
- ↳ Read Me First
- ↳ Site Admin (Lifexed)
- Train Simulations
- ↳ BVE and OpenBVE
- ↳ Generic Simulation
- ↳ Rail Simulator
- ↳ [RS] Help for Beginners
- ↳ [RS] General RS Discussion
- ↳ [RS] Screenshots
- ↳ [RS] Videos
- ↳ [RS] Route Building
- ↳ [RS] Building Rolling Stock
- ↳ [RS] Scenario Creation
- ↳ [RS] Cab View Creation
- ↳ [RS] Scenery Creation
- ↳ [RS] Signalling
- ↳ [RS] Sounds
- ↳ [RS] Physics
- ↳ [RS] 3D Modelling
- ↳ [RS] Pre-release Discussions
- ↳ Regional Discussion
- ↳ [RS] Ireland
- ↳ [RS] Europe and Surrounding Areas
- ↳ [RS] North America
- ↳ [RS] Australia / New Zealand
- ↳ [RS] Rest of the World
- ↳ OLDER Versions of RailWorks [1, 2 and 3: Train Simulator 2012]
- ↳ [RW] Frequently Asked Questions
- ↳ [RW] Help for Beginners
- ↳ [RW] General RW Discussion
- ↳ [RW] Steam Help
- ↳ [RW] Screenshots
- ↳ [RW] Videos
- ↳ [RW] Route Building
- ↳ [RW] Route Building Challenge 1
- ↳ [RW] Route Building Challenge 2
- ↳ [RW] Route Building Challenge 3
- ↳ [RW] Great Scenario Challenge 1
- ↳ [RW] Building Rolling Stock
- ↳ [RW] Scenario Creation
- ↳ [RW] Cab View Creation
- ↳ [RW] Scenic Item Creation
- ↳ [RW] Signalling
- ↳ [RW] Sounds
- ↳ [RW] Physics
- ↳ [RW] 3D Modelling
- ↳ [RW] RW Tools
- ↳ [RW] UKTS Freeware Packs
- ↳ WCML North Scenario Pack
- ↳ Train Simulator
- ↳ Links
- ↳ Rail Simulator Home Page
- ↳ Railsimulator.com Blog
- ↳ Paul Jackson (CEO) Blog
- ↳ Wear Valley Railway (RSDerek) Blog
- ↳ Railsimilarity Blog
- ↳ [TS] Frequently Asked Questions
- ↳ [TS] Help for Beginners
- ↳ [TS] General Discussion
- ↳ [TS] Steam Help
- ↳ [TS] Screenshots
- ↳ [TS] Videos
- ↳ [TS] Route Building
- ↳ [TS] Building Rolling Stock
- ↳ [TS] Scenario Creation
- ↳ [TS] Cab View Creation
- ↳ [TS] Scenic Item Creation
- ↳ [TS] Signalling
- ↳ [TS] Sounds
- ↳ [TS] Physics
- ↳ [TS] 3D Modelling
- ↳ [TS] RW Tools
- ↳ [TS] UKTS Freeware Packs
- ↳ Train Sim World
- ↳ [TSW] General Discussion
- ↳ [TSW] Screenshots
- ↳ [TSW] Videos
- ↳ Microsoft Train Simulator 1
- ↳ [MSTS1] Help for Beginners
- ↳ [MSTS1] General MSTS Discussion
- ↳ [MSTS1] MSTS Running under Windows 10
- ↳ [MSTS1] MSTSbin
- ↳ [MSTS1] Screenshots
- ↳ [MSTS1] Videos
- ↳ [MSTS1] Route Building
- ↳ [MSTS1] Building Rolling Stock
- ↳ [MSTS1] Activity Creation
- ↳ [MSTS1] Cab View Creation
- ↳ [MSTS1] Scenery Creation
- ↳ [MSTS1] Sounds
- ↳ [MSTS1] Physics
- ↳ [MSTS1] Texture Creation
- ↳ [MSTS1] 3D Modelling
- ↳ [MSTS1] UKFinescale Track
- ↳ [MSTS1] XTracks Track
- ↳ [MSTS1] MSTS under VISTA or Windows 7
- ↳ Regional Discussion
- ↳ [MSTS1] Ireland
- ↳ [MSTS1] Europe and Surrounding Areas
- ↳ [MSTS1] North America
- ↳ [MSTS1] Australia / New Zealand
- ↳ [MSTS1] Australia / New Zealand Wish List
- ↳ [MSTS1] Rest of the World
- ↳ Special Interest Groups
- ↳ [MSTS1] Welsh Highland Railway
- ↳ [MSTS1] Chris Baily's Productions (inc ELR etc)
- ↳ [MSTS1] Midland Railway TS
- ↳ [MSTS1] Save 75069 CD
- ↳ [MSTS1] Bo'ness And Kinneil Railway TS
- ↳ [MSTS1] LMS Rolling Stock CD
- ↳ OpenRails
- ↳ Links
- ↳ OpenRails Home
- ↳ Developers: XNA Creators Home
- ↳ Developers: Visual Studio Express Editions
- ↳ Developers: Reimers XNA Tutorials
- ↳ [OR] Help for Beginners
- ↳ [OR] General OpenRails Discussion
- ↳ [OR] Screenshots
- ↳ [OR] Development
- ↳ [OR] Activity Creation
- ↳ Special Interest Forums
- ↳ Narrow Gauge
- ↳ Trams
- ↳ Underground
- ↳ Technical Discussions - Hardware, Operating Systems
- ↳ Trainz
- ↳ Trainz: A New Era [T2]
- ↳ [T2] General Discussion
- ↳ Trainz Railway Simulator [TRS]
- ↳ [TRS] Help for Beginners
- ↳ [TRS] General Trainz Discussion
- ↳ [TRS] Screenshots
- ↳ World of Subways
- 3D Modelling
- ↳ 3D Crafter
- ↳ Blender
- ↳ 3D Studio Max AND Discreet GMax
- ↳ Abacus TS Modeler
- ↳ Google Sketchup
- Railways in the Real and Scale World
- ↳ Scale Railway Modelling
- ↳ Railway Photography
- ↳ Real Railway Discussion
- ↳ Rail Related Magazines
- Other Simulations
- ↳ [TRAIN] Signalling Simulations
- ↳ [TRAIN] Other Train Sims
- ↳ [SHIP] Ship Simulators
- ↳ [ROAD] Road-based Simulators
- Non-Train Simulation
- ↳ Open Forum
- ↳ Aviation
- UKTrainSim Works
- ↳ RailWorks RailDriver Interface
- ↳ RailWorks Joystick Interface