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

Rotating object

3 posters

Go down

Rotating object Empty Rotating object

Post by leyland1195 Wed Dec 04, 2019 2:43 pm

Hi Guys,

I have just created a lineside relay cabnet and loaded it into my route, 

Currently its facing the oncoming way ie I can see the front of the cabnet, How would I rotate it so it faces the side of the track instead? ie turn it 90 degree ,

Is this something I need to enter/edit into my route code? or do I need to edit my object code to achieve this? 

Many Thanks

Ray

leyland1195

Posts : 34
Join date : 2012-09-24

Back to top Go down

Rotating object Empty Re: Rotating object

Post by mrknowitall Wed Dec 04, 2019 8:43 pm

If it’s a single use object you can simply add the rotate command in the object file, if it’s going to be used multiple times then you can change the command in the .freeobj placement. 

I believe this forum has a cracking set of route building tutorials in the college section.


[url=http://brnobve.eu/Guides/Building a route for BVE.pdf][/url]
mrknowitall
mrknowitall

Posts : 824
Join date : 2011-07-09
Age : 31
Location : W. Yorkshire

Back to top Go down

Rotating object Empty Re: Rotating object

Post by JW555 Thu Dec 05, 2019 4:54 pm

There are two ways. Which you use depends on a few things.

If you want the object rotated the same amount each time you use it in your route file then I'd suggest doing it in the object .csv file using this at the end of your file:

RotateAll,0,1,0,90

Which rotates the whole thing 90 degrees around the y axis at the origin.

Alternatively use:

freeobj(trackref;objref;xpos;ypos;90)

All details are at the openbve website under the developers tab.

Good luck with your route.

JW555

Posts : 9
Join date : 2019-10-30

Back to top Go down

Rotating object Empty Re: Rotating object

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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