Rotating object
3 posters
Page 1 of 1
Rotating object
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
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
Re: Rotating object
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]
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- Posts : 824
Join date : 2011-07-09
Age : 32
Location : W. Yorkshire
Re: Rotating object
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.
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
Similar topics
» rotating an object via a key command
» Animated sound not rotating with object
» should default option for object optimization mode in object viewer is low or high instead none ?
» Unable to load wavefront object in Object Viewer
» Massive *.csv object vs. composite *.animated object
» Animated sound not rotating with object
» should default option for object optimization mode in object viewer is low or high instead none ?
» Unable to load wavefront object in Object Viewer
» Massive *.csv object vs. composite *.animated object
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum