• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Rotating Vertically

Messages
537
Country
canada
Hi, All

Using EOD I can make an object rotate horizontally (radar antenna), of course.

But how do I make something rotate vertically, such as a windmill? I asked around and I got some interesting replies, related to editing the api directly. Unfortunately, the replies only gave partial information.

Ideally I'd see the entire api of a very simple object, like a cube, that could rotate vertically.

If anyone out there knows how to do it, and is willing to make a cube with EOD, make it rotate vertically and show (or send, e-mail address below) me the api, I can look at the api and see what makes it rotate vertically and apply the info to other objects.

I know it is asking a lot, but the two apis (one that rotates and the one that doesn't) would be just fantastic. Any other info you might have such as what funny code means what (such as "2" means "dusk" and "dawn", geezz), like angles of axis of rotation, etc. will me greatly appreciated.

As I want to learn rather than have the windmill, a cube is just about perfect for the lesson, I think.

I rather not use gmax for this.

Thanks, All!

Fern marquesfern@hotmail.com
 
Hi Fern,

I don't use EOD, so maybe it is easier if you post a simple API macro here. The I can show you where to add the commands to rotate it.
 
Rotating wind mill

Hi Arno

Ok, here it goes. This is the API of a rectangular box some 12 m in length, not very thick, and about 2 m wide. The box is representing the blade of a windmill, although it really doesn't belong to any scenery object, it is just a sample.

Now, something that occurred to me just now... When something rotates it has to have a pivot, and the pivot has to have a location...

So, if you go through the trouble of making ir rotate, don't forget to tell me how the pivot gets to be located in the object...

Perhaps you can add comments to each line you add. But remember, I am just scratching the surface with this SCASM BGLC stuff, and I need more info than the more advanced fellows... Sorry...

Thanks, Arno!!!

Here is the api:


;macrodesc Windmill_blade (EOD)
;defaultscale 1
;designshape -6,-1,-6,0,6,0,6,-1
;--------------------------------------------
; Filename: Windmill_blade.api
; Directory: \Documents and Settings\Owner\My Documents\Flight Simulator\Easy Object Designer\API files\
; Project: Learn Vertical Rotation
; Designer: Fern beggin for help
; Date: 2005-01-07
; Update: 2005-01-07
; Credits: Go to Arno, when he makes it rotate.
; Macro generated using EOD 2.2.79
; Any commercial distribution or use of this file is prohibited
;--------------------------------------------
; %1 = Latitude
; %2 = Longtitude
; %4 = Not used [RefpointScale=1, ObjectScale=0.25]
; %5 = Rotation
; %6 = Not Used
; %7 = Not Used
; %8 = Not Used
; %9 = Not Used
; %10 = Visibility range
; %11 = Altitude
; %12 = Detail level
; 21 = Radial visibility range (x 1.5)
; %15 = User defined


Area( B %1 %2 22 )
mif( %12 )
IfVarRange( : 0346 %12 5 )
mifend
PerspectiveCall( :Pos )
ShadowCall( :Pos )
Jump( : )

:Pos
mif( %11 )
RefPoint( 3 :End %1 %2 E= %11 V1= %10 V2= 21 )
melse
RefPoint( 7 :End 1 %1 %2 V1= %10 V2= 21 )
mifend
SetScaleX( :End 0 0 14 ) ; Scale=0.25
mif( %5 )
RotatedCall( :Begin 0 0 %5 )
melse
Call( :Begin )
mifend
:End
Return
:Begin

TransformCall( :part000 0 44 0 0 0 0 0 0 0 ) ;Cube 1
Return

;-------
:part000
; cube - Cube 1
Points( 0
-24 0 -1 ; 0
24 0 -1 ; 1
24 0 1 ; 2
-24 0 1 ; 3
-24 6 -1 ; 4
24 6 -1 ; 5
24 6 1 ; 6
-24 6 1 ; 7
)
RGBSColor( EF 0 0 247 )
Poly( 0 0 32767 -1 1 5 4 0 ) ;Inside front
Poly( 0 0 -32767 -1 3 7 6 2 ) ;Inside back
Poly( 32767 0 0 -24 0 4 7 3 ) ;Inside left
Poly( -32767 0 0 -24 2 6 5 1 ) ;Inside right
Poly( 0 -32767 0 -6 5 6 7 4 ) ;Inside top
Poly( 0 32767 0 0 0 3 2 1 ) ;Inside bottom
Poly( 0 0 -32767 1 0 4 5 1 ) ;Front
Poly( 0 0 32767 1 2 6 7 3 ) ;Back
Poly( -32767 0 0 24 3 7 4 0 ) ;Left
Poly( 32767 0 0 24 1 5 6 2 ) ;Right
Poly( 0 32767 0 6 4 7 6 5 ) ;Top
Poly( 0 -32767 0 0 1 2 3 0 ) ;Bottom
Return

EndA
 
Back
Top