Jump to content

Misc questions for beginning


Recommended Posts

Hallo everybody. The plugin-making documentation is still nowhere to be found, but I\'m seeing so much stuff being done that I\'ll probably cave and try to start coding something without it.

I wanted to ask you some questions to get started; right now, I don\'t really know how hard some of my ideas are, even with better documentation.

Number 1: Is there a way to completely hijack the flight controls? I want to make some 'filters' for the commands, that would really need to take player input and transform it instead of adding their contribution in parallel.

Two: The .cfg reader understands arrays? If it doesn\'t, is there something that prohibits reading in another file (where I\'d store the array)?

Three: The LineRenderer example code in the wiki is very interesting, might be just what I need for one of my ideas. Do you know where I might look for learning how to substitute a simple 3d object for the line there? (I\'m thinking about a semi-transparent arrow)

Four: Has anyone tried messing with the 8-ball and altimeter? I have a couple ideas for new ball modes, that would need a new texture and, obviously, a way to spin it the way I want. (Though who knows when I\'d manage to do that, just making the new texture won\'t be easy at all for me)

Well, there would be also lots of much more basic questions like, 'how do I setup Monodevelop?', but I\'m sure there are already threads for that. Time to browse the archive.

My general objective is to write devices that make manual flight easier, not full autopilots. There are already many of those, and I like to fly ;)

Link to comment
Share on other sites

Three: The LineRenderer example code in the wiki is very interesting, might be just what I need for one of my ideas. Do you know where I might look for learning how to substitute a simple 3d object for the line there? (I\'m thinking about a semi-transparent arrow)
Best way to do that would be to assign a 'Transparent/Diffuse' shader to some parts of your model -- and then rotate those parts as you wish. See Cart plugin source code for an example on working with shaders.
Link to comment
Share on other sites

1 Yes;see the wiki examples at flybywire

I don\'t understand whether that works concurrently with the user or not.

I want to get the stick angles from the user, but have full authority on the output. I remember other threads discussing problems with various autopilots fighting each other, so the 'normal' way doesn\'t give you that.

Link to comment
Share on other sites

I don\'t understand whether that works concurrently with the user or not.

I want to get the stick angles from the user, but have full authority on the output. I remember other threads discussing problems with various autopilots fighting each other, so the 'normal' way doesn\'t give you that.

It gives you FULL authority on the output; you can put the yaw rates in variables so you can filter them and change them as you wish.

e.g.

//here we see the yaw pitch and roll the user made

yaw = s.yaw;

pitch = s.pitch;

roll = s.roll;

//and here we change them like we wish without losing the initial values

s.yaw = yaw / 2;

s.pitch = sqrt(pitch);

s.roll = yaw;

(this is just an example of how you could do it)

Link to comment
Share on other sites

  • 2 weeks later...
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...