Giter VIP home page Giter VIP logo

simplekeplerorbits's People

Contributors

karth42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simplekeplerorbits's Issues

How does SimpleKeplerOrbits deal with thrust, if at all?

Is there a way to apply forces to a body without using Rigidbody? When I add a Rigidbody, the SimpleKeplerOrbits components seem to stop working, but I don't know of any other way to apply the equivalent of thrust. My use case is a semi-realistic docking simulator, where your thruster firings change your orbit slightly.

How to calculate prograde/retrograde value?

Hello. i'm currently working on a game like KSP. so i want to calculate prograde/retrograde value.
i tried velocityHandle.transform.position += velocityHandle.transform.right but it is not perfect solution.
anyone help me?

Is there a way to get position at a specific time?

Thank you for making such a great tool!

I'm trying to use this to create "spheres of influence" to fake n-body gravity as discussed in this talk by the kerbal developers. Basically I want to check an orbit after it's created to see if it enters another body's sphere of influence by looking at different points along the orbit, & comparing the distance between where the orbiter will be & where each sphere of influence will be. However I hit a snag when trying to plug a time value into the OrbitMover.

My first approach was to try plugging in different deltaTime values into OrbitData.UpdateOrbitDataByTime in order to step forward through time, then give it a negative value at the end to "reset". However I hit some unpredictable results & am not sure what's causing it- it seems correct at first but the accuracy degrades over time (or possibly depending on which part of the orbit is being sampled). I think maybe the issue is with adding negative deltaTime values?

Is there a way to sample position of an OrbitMover at (Time.time = 100 etc) instead of incrementing the system each frame? And/ or is there a way to sample the orbit mover's position by percentage?

Thanks🌼

Planet Rotation

I don't see planet rotation functionality in this project. It seems that the velocity handle transform must be a child of the orbiting body to work correctly. When rotating the planet it also rotates the velocity handle and causes the orbit to change wildly. Is there a solution to this somewhere already in the project?

Invalid orbit

1.Object at stationery position or with zero velocity should be attracted towards the centre of attracter .but this does not happen.

2.Also body mass did not effect orbit ,only attracter mass count for gravity.

3.please add the rigid body velocity insted of empty distance from parent.

Although your work is awesome and thanks for Sharing.

Dealing with Collisions

I'm trying to write an extension to this asset which allows you to use rigid body collisions (say between spacecraft or spacecraft and planets) but I keep running into hurdles that I cannot understand. How do you suggest I go about doing this?

What is the startup Item

I have downloaded and opened in visual studio. 2017. What item do i set as startup. Visual studio is requiring i set a startup item. Thanks Mark

Orbit calculating error

  1. Open ExampleScene1.
  2. Change Transform.position of Planet01 via Inspector to 20, 0, 0.
  3. Change Transform.Scale of Planet01 to 1, 1, 1.
  4. Change Velocity Transform.position of Planet01 to 0, 0, 10.
  5. Change Gravity Constant of Planet01 to 1.

Exception got:

ArithmeticException: Function does not accept floating point Not-a-Number values.
System.Math.Sign (System.Double value) (at <a8ed250850854b439cedc18931a314fe>:0)
SimpleKeplerOrbits.KeplerOrbitUtils.ConvertTrueToEccentricAnomaly (System.Double trueAnomaly, System.Double eccentricity) (at Assets/SimpleKeplerOrbits/Scripts/Utils/KeplerOrbitUtils.cs:340)
SimpleKeplerOrbits.KeplerOrbitData.GetCentralPositionAtTrueAnomaly (System.Double trueAnomaly) (at Assets/SimpleKeplerOrbits/Scripts/Data/KeplerOrbitData.cs:427)
SimpleKeplerOrbits.KeplerOrbitData.GetFocalPositionAtTrueAnomaly (System.Double trueAnomaly) (at Assets/SimpleKeplerOrbits/Scripts/Data/KeplerOrbitData.cs:464)
SimpleKeplerOrbits.KeplerOrbitData.GetOrbitPointsNoAlloc (UnityEngine.Vector3[]& orbitPoints, System.Int32 pointsCount, UnityEngine.Vector3 origin, System.Single maxDistance) (at Assets/SimpleKeplerOrbits/Scripts/Data/KeplerOrbitData.cs:650)
SimpleKeplerOrbits.KeplerOrbitLineDisplay.ShowOrbit () (at Assets/SimpleKeplerOrbits/Scripts/Components/KeplerOrbitLineDisplay.cs:144)
SimpleKeplerOrbits.KeplerOrbitLineDisplay.OnDrawGizmos () (at Assets/SimpleKeplerOrbits/Scripts/Components/KeplerOrbitLineDisplay.cs:88)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
  1. Start Player.

Got error:

transform.position assign attempt for 'Planet01' is not valid. Input position is { NaN, NaN, NaN }.
UnityEngine.Transform:set_position(Vector3)
SimpleKeplerOrbits.KeplerOrbitMover:ForceUpdateViewFromInternalState() (at Assets/SimpleKeplerOrbits/Scripts/Components/KeplerOrbitMover.cs:222)
SimpleKeplerOrbits.<OrbitUpdateLoop>d__13:MoveNext() (at Assets/SimpleKeplerOrbits/Scripts/Components/KeplerOrbitMover.cs:188)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
SimpleKeplerOrbits.KeplerOrbitMover:OnEnable() (at Assets/SimpleKeplerOrbits/Scripts/Components/KeplerOrbitMover.cs:90)

Unity Version 2019.2.0f1

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.