Giter VIP home page Giter VIP logo

aerotest's Introduction

aerotest

King of the sky - eagle a mob for mobkit

implementation:

it's done using low level behaviors as opposed to plain functions, because pitch/roll changes must be gradual so there's a need to maintain states over time.

function aerotest.lq_fly_pitch(self,lift,pitch,roll,acc,anim)
    this one tries to maintain constant pitch. Flight looks stable, but the thing can stall and fall if velocity too low. The example uses this one exclusively.
    
function aerotest.lq_fly_aoa(self,lift,aoa,roll,acc,anim)
    tries to maintain constant angle of attack. makes them less prone to stalling, but they tend to oscillate after abrupt changes of flight parameters. this one's very WIP.
    
params:

    lift: [number]
    multiplier for lift. faster objects need less, slower need more. typical value: 0.6 for speeds around 4 m/s

    pitch: [degrees]
    angle between the longitudinal axis and horizontal plane. typical range: <-15.15>

    aoa:
    [degrees] angle of attack - the angle between the longitudinal axis and velocity vector.

    roll: [degrees]
    bank angle. positive is right, negative is left, this is how they turn. if set too large they'll loose height rapidly

    acc: [number]
    propulsion. use with positive pitch to make them fly level or climb, set it to 0 with slight negative pitch to make
    them glide. typical value: around 1.0

    anim: [string]
    animation.

The example uses two simple high level behaviors to keep them between 18 and 24 nodes above ground, seems good already for ambient type flying creatures. warning: never set_velocity when using these behaviors.

aerotest's People

Contributors

berengma avatar gundul42 avatar

Stargazers

 avatar

Watchers

 avatar

aerotest's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.