DESCRIPTION
Vizzy++ is a mod containing additional expression, instruction, and event blocks.
Version: 0.5
Vizzy++ Elements
Craft Information Expressions
- Orbital Element¹ ...
- Right Ascension - The angle between the reference direction and the ascending node.
- Inclination - The degree of tilt.
- Argument of Periapsis - The angle between the ascending node and the direction of periapse.
- True Anomaly - The angle between the direction of the periapse and the current position from the main focus of the orbital ellipse.
- Semi-Major Axis - Half of the sum of the apoapse and periapse distances.
- Eccentricity - The shape of the orbit, from circular (0), to parabolic (1), to hyperbolic (>1).
- Period - The period of the orbit in seconds.
- Advanced Orbital Element¹ ...
- Angular Momentum - A vector representing the body's rate of rotation around its parent.
- Apoapse - A vector representing the apoapse of the orbit.
- Periapse - A vector representing the periapse of the orbit.
- Orbital Plane Normal - A unit vector perpendicular to the orbital plane.
- Eccentricity Vector - A vector pointing toward the periapsis of the orbit with a magnitude equal to the eccentricity.
- Eccentric Anomaly - The current eccentric anomaly. See: https://en.wikipedia.org/wiki/Eccentric_anomaly
- Mean Anomaly - The faction of an orbit's period that has elapsed since the orbit passed periapsis in degrees from 0 to 360.
- Mean Motion - The average angular speed of the orbit in degrees.
- Cartesian State Vector¹ ...
- Position - The position of the craft or planet relative to its parent.
- Velocity - The velocity of the craft or planet.
- Get Craft ID - Gets the ID of a specific craft: Targeted, Current, or Active. Craft names are sometimes duplicated, so this is more reliable for use with the other expressions.
¹ These expressions can take a Planet Name, a Craft Name, or a Craft Id and return the specified value for that object's orbit. If the specified value is blank or a negative number, then the value for the current craft will be returned.
Text Expressions
- Text Comparison - Compares pieces of text.
- Text Transform - Returns the result of a transform of a single text value.
- Split Text - Returns a list of strings by splitting the input on the specified separators.
Math Expressions
- Advanced Unary Math
- exp - Returns the Euler's Number raised to the specified exponent.
- sinh - Hyperbolic Sine
- cosh - Hyperbolic Cosine
- tanh - Hyperbolic Tangent
- asinh - Inverse Hyperbolic Sine
- acosh - Inverse Hyperbolic Cosine
- atanh - Inverse Hyperbolic Tangent
Constant Expressions
- p - The mathematical constant PI, 3.14159...
- G - The Universal Gravitation Constant (in cubic meters per kilogram per seconds squared).
- e - Euler's Number (base of natural logarithms).
- c - The speed of light in meters per second.
Flow Instructions
- Continue - Stops the execution of the current iteration through a loop, and continues executing the loop from the top, starting with any state change or condition checks.
GENERAL INFO
- Mod Version: 0.5
- Required Juno: New Origins Version: 0.9.50x.x
- Published: 5/20/2020
- Downloads: 2487
DOWNLOADS
TAGS
Comments
43 Upvotes
Log in in to upvote this post.
This is a beta, so the set of things this adds is pretty limited, and I may make breaking changes in the future.
I am happy to take requests for additional functionality, within reason. Please keep requests restricted to general purpose functionality, I'm not going to be implementing monolithic super complex vizzy instructions as part of this. If those happen they should be separate mods.
could you add atmosphere information at spesific heights
@SuhuScompany If you go into the planet studio and look at a planet, its rotation time is specified in hours. For example Droo is 14 hours. Then convert it from hours to seconds. Right now this is the only way to find it. There is no vizzy block for planet rotation speed yet.
@GoldenShadowGS , Thanks a lot, but how can I find the rotation speed of the planet?
@SuhuScompany You can do it without mods, subtract the surface velocity from the target's orbital velocity. You can create those surface velocity vector with some math. First create an east vector from the target's position with cross product of target position and vector (0,1,0) then normalize it and multiply by the speed of the planet's rotation times the sine of the target positions latitude.
Does this mod provide for the calculation of the target's speed relative to the planet's surface? This function is sorely lacking in the original Vizzy .. If it can be calculated without mods, then tell me how please
trying to get the velocity vector of Juno results in an error. I can see where this comes from, but could you please make it so that it returns 0?
C++.jpeg
@sflanker Where my V#
:D
@JPQed Looks like I hadn't uploaded the update for 0.9.50x. It is updated now. You can also check the releases page on GitHub where I will post updates for beta versions of SimpleRockets2 (as you can see I sometimes forget to update this page once the beta becomes stable).
@JPQed I updated it recently but I'll have to double check the latest version and let you know. I'll post an update if it is broken.
Does this work on 0.9.503 or am I doing something wrong here? Not showing up in vizzy for me
@Staticalliam7 heh, this mod doesn’t add pointers or objects, so it’s not particularly C++ like. However if you’re looking for a Tex based Vizzy, you might check out Lizpy although it uses Lisp rather than C/C++ syntax.
C++ mod for sr2 vizzy
New version release: v0.4
continue
flow instruction.I've published a new release with new expressions for working with text. Also the Target Craft ID expression has been replaced with an expression containing a dropdown with the options Target, Current (craft running the program), and Active (player controlled craft).
@Deanolt yes, any craft that uses Vizzy++ will only function properly if the user also has Vizzy++ installed. This is because the mod is not just for convenience but adds things that aren't possible in the stock game.
And if you build the code on this mod and laid out the craft with it, then the loader will need to install this mod?
Can you get a craft's drift acceleration? It can be
Accelration - Gravity
in orbit, or gee-force. I made the formula but it doesn't give me a clean data; it has noises.This thing should be in future game update instead of being a mod, it's not luxury, it's a must. Maybe the constants are cool luxury but not the orbital elements. No more "NaN" for perigee, negative value can be concluded from the semi-major which is not available in the game.
@socialist Thanks!
Unfortunately I think mods are not currently supported on android.
@sflanker I make you blue!By the way,it will be on android?
Vizzy#
@CPSU3417 Have you ever wondered whenmobilewhenmobilewhenwhenmobilemobilewhenwhenmobilewhenmobilewhenwhenmobilewhenwhenmobilemobilewhen?
@undefined1 Missing option: Fizzy (Functional Vizzy, a text based representation of Vizzy with Lisp syntax)! 😅