BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Slam door animation?

Go down

Slam door animation? Empty Slam door animation?

Post by leyland1195 Tue Dec 15, 2020 11:35 am

Hi

Just wondering if its possible to code the slam door animation for carriages and class 421 etc ?

Kind regards

Ray

leyland1195

Posts : 33
Join date : 2012-09-24

Back to top Go down

Slam door animation? Empty Re: Slam door animation?

Post by SP1900 Tue Dec 15, 2020 3:37 pm

It is definitely possible to code animations for swinging doors. 

A simple code example would look like this
Code:
RotateYFunction = rightdoors * 1.55

Of course you can modify that code to work with the left doors too and the value (1.55) can be changed as well. 

Make sure to remember that it's in Radians and not degrees. 

That is a simple code

There are ways of making the animation to look more dynamic but it's difficult to explain how (I'm not super good with animations myself) and it's best to familiarise yourself with the .animated file section of the developer documentation
SP1900
SP1900

Posts : 257
Join date : 2017-12-08
Age : 18
Location : Cambridge, England

Back to top Go down

Slam door animation? Empty Re: Slam door animation?

Post by graymac Sat Dec 19, 2020 12:19 pm

For a working example look at the Irish heritage coaching stock by celtictrainsim.com
graymac
graymac

Posts : 2126
Join date : 2011-08-28
Location : Co Mayo, Eire

http://www.celtictrainsim.com

SP1900 likes this post

Back to top Go down

Slam door animation? Empty Re: Slam door animation?

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum