Go Back   Orbiter-Forum > Orbiter Addons > Addon Development
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read


Addon Development Developers post news, updates, & discussions here about your projects in development.

Thread Tools
Old 05-01-2019, 01:15 PM   #16

Originally Posted by potjoe View Post
 Is there an api command to get the coordinates in the equatorial reference frame ? I could'nt find it. I mean I can code the conversion by hand using matrix and listing obliquity value but that would be much more convenient to get them already converted.
In Orbiter? There is an example from ScnEditor plugin:
	oapiGetRelativePos (hV, hRef, &pos);
	oapiGetRelativeVel (hV, hRef, &vel);
	// map ecliptic -> equatorial frame
	if (frm) {
		MATRIX3 rot;
		if (frm == 1) oapiGetPlanetObliquityMatrix (hRef, &rot);
		else          oapiGetRotationMatrix (hRef, &rot);
		pos = tmul (rot, pos);
		vel = tmul (rot, vel);
But I have no idea how to do this in LuaScript. Looks like oapiGetPlanetObliquityMatrix is not exported to LuaInterpreter.
Ajaja is offline   Reply With Quote

  Orbiter-Forum > Orbiter Addons > Addon Development


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump

All times are GMT. The time now is 04:37 AM.

Quick Links Need Help?

About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.