Rotation dependent on trackdistance
4 posters
Page 1 of 1
Rotation dependent on trackdistance
I would like something to rotate a particular angle when the train is within a certain distance, so I feel it's a combination of rotation and stateFunction command. How can I do that?
Think of it similar to a level crossing beam, it is vertical when no train is around, and horizontal when a train is approaching. get my point?
Think of it similar to a level crossing beam, it is vertical when no train is around, and horizontal when a train is approaching. get my point?
Re: Rotation dependent on trackdistance
Yes, you only need to rotate it - using proper condition, angle and damping ratio will do...
Re: Rotation dependent on trackdistance
Derryck wrote:Yes, you only need to rotate it - using proper condition, angle and damping ratio will do...
I'm still relatively new to .animated objects, could you tell me exactly how this works?
Re: Rotation dependent on trackdistance
You need to see the OpenBVE documentation for developers, get it from Odakyufans site. Also it can help to study existing animations and see how the code is structured. To gain full understanding you need to be adept at boolean algebra and if you understand the C# language it helps.
Otherwise, the guidelines and a few experiments usually get a result.
Otherwise, the guidelines and a few experiments usually get a result.
Re: Rotation dependent on trackdistance
Ski Tube wrote:I'm still relatively new to .animated objects, could you tell me exactly how this works?
Just to clarify - do you need the object rotated after the train is in some defined distance from it?
Re: Rotation dependent on trackdistance
Derryck wrote:Ski Tube wrote:I'm still relatively new to .animated objects, could you tell me exactly how this works?
Just to clarify - do you need the object rotated after the train is in some defined distance from it?
I would like my object to rotate clockwise by 90 degrees when the train is approaching, within 100 meters, and rotate back 90 degrees anti clockwise when the train has left, after 50 meters.
Re: Rotation dependent on trackdistance
I see. You will need conditions them. I might look into it later today, but no promises, I have enough to do. Which axis?
Re: Rotation dependent on trackdistance
If you look at the animated level crossings on the Killavalley branch you might find that I have already done what you're trying to do.
Re: Rotation dependent on trackdistance
Also DemoRoute1, but it seemed to be gone.
alvinhochun- Posts : 88
Join date : 2012-05-08
Location : Hong Kong
Re: Rotation dependent on trackdistance
Derryck wrote:I see. You will need conditions them. I might look into it later today, but no promises, I have enough to do. Which axis?
All three, but in separate objects.. Each object will have rotation along a single axis only
Re: Rotation dependent on trackdistance
OK, so you will just use different command, that is not a problem.
Re: Rotation dependent on trackdistance
Thanks to everyone who offered to help, the problem is now solved
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|