The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
1answer
180 views

How to avoid gimbal lock in Unreal Engine (c++)?

I created an orbit camera (sometimes called turntable camera; similar to the one with the "use UE3 orbit controls" setting in a static mesh view). I attached the camera to a USpringArmComponent with ...
0
votes
0answers
52 views

How to make an object orbit around an orbiting object in CSS?

I am trying to make a moon orbit around an earth which is orbiting around the sun. This is one of my first ever projects so I really don't have a clue. I'm using CSS and currently the moon is just ...
1
vote
2answers
34 views

Manual orbit motion jerks at a certain point

So I've been trying to make a simple sphere-orbiting-another-sphere test. The smaller sphere is supposed to circle the bigger one based on the mouse location. Here is my code: //script is ...
3
votes
3answers
67 views

Computing a full revolution for an arbitrary orbit?

I'm making a game in which the goal is to get as many planets as possible to orbit around a star. The user launches planets at any distance away from the sun (as long as it's on-screen), and in any ...
1
vote
1answer
291 views

How can make an object orbit a sphere in a random direction?

How can I move an object on a random orbital path around a sphere? I've created some objects at an initial position that is essentially a random point on the sphere offset by some distance (say, ...
1
vote
2answers
113 views

Object orbiting a 3d sphere

I'm developing in libgdx java/android but not using any high-level environment like Unity. I have a sphere at [0,0,0], with a PerspectiveCamera looking at it. Through the main game loop I have ...
0
votes
0answers
43 views

2D circular with elliptical orbit interference

Given 2 object (a spaceship and a planet), which are both orbiting the same sun. I have the spaceships position and velocity (and therefore also it's elliptical curve equation). And for the planet I ...
6
votes
2answers
227 views

Orbits: Combine the Pros of RK4, Symplectic Euler, and Verlet Velocity Integrator

Recently, I've implemented and compared a number of basic integrators for my physics engine. The 3 that gave me the best results are RK4, Symplectic Euler, and Verlet Velocity, but I think I need ...
6
votes
1answer
210 views

Orbital mechanics: orbit as a function of time. Universal variable formulation?

I am trying to model a two dimensional orbit for a two body Kepler problem but have gotten stuck when introducing the time variable. For a satellite with known semi major axis (a), eccentricity (e), ...
2
votes
1answer
462 views

What is wrong with my 2D orbit calculation?

I am working on a 2D game, and I am working on adding some space physics, so I need to find a way to create a circular orbit. I want to make my game object move on a circular way around a planet. I'm ...
2
votes
0answers
26 views

2D orbital mechanics [duplicate]

I'm working on a 2D game which involves firing projectiles around a solar system and having the path of the projectile change based on the gravitational pull of solar bodies. I've been trying to find ...
2
votes
1answer
160 views

GameMaker: Studio - Slow down calculations

I currently have an orbital simulator, with a brilliant answer in another Game Development question here, and would like to know how to slow down the calculations of Game Maker, to be able to do more ...
3
votes
2answers
1k views

How can I implement simple object orbits in Game Maker?

I've seen a lot of tutorials for things like "fixed circular orbit" and "elliptical orbits" which end up never been what I actually want. I have two objects: oPlayer, and oPlanet. I am trying to ...
0
votes
1answer
187 views

How does orbital math work?

I'm writing a 2d space game, and I want the players to be able to 'orbit' objects and other players (if they're fast enough, of course), but I'm having trouble coming up with the right way to think ...
3
votes
1answer
126 views

Non linear scaling to show a sol system

In a sol system 2d simulation I have some problems in showing the entire system (ie: eaven planets far away than saturn ) letting distinguibles the nearest planet orbits. Actualy a use a simple ...
1
vote
0answers
85 views

Calculating orbital elements from Cartesian Vectors

I'm having serious troubles with getting my calculations to work. I'm calculating the orbital elements from a position vector, and a velocity vector. (I also know the distance and mass of the bodies ...
1
vote
0answers
215 views

Calculate Orbit Path/Ellipse given mass, velocity, and distance (2body)

Calculate and draw the path of an orbit in a 2 body problem given the mass, current velocity, and distance of both bodies? We're working in Unity and will be using the default rigidbody.mass to start ...
2
votes
2answers
209 views

How do I keep my orbiting camera upright?

I am working on code that rotates the camera around a point on the in-game map when dragging the mouse. I understand how to lock it so it stays above the map surface. However, if I keep rotating the ...
-1
votes
1answer
198 views

Homeworld style orbital camera concept [closed]

So I spent some time thinking of how I'm going to make a camera similar to what's used in Homeworld (a 3D space RTS, in which your camera can be rotated around your units to look at them from any ...
1
vote
2answers
327 views

How can I compute the orbit of one body around another?

I'm attempting to have a planet (with a known mass and radius) orbit it's sun (also with a known mass and radius). It doesn't have to be 100% realistic, but it should be possible that the sun have ...
2
votes
2answers
1k views

adapting a Unity gravitational script to allow moons

I'm using this script: http://wiki.unity3d.com/index.php/Simple_planetary_orbits to get a solar system going in Unity, but it doesn't seem to support creating bodies that orbit other moving bodies ...
0
votes
1answer
578 views

XNA Zoom in/out on model instead of scaling the model

I'm trying to implement zoom in/out functionality into my game. I can change the cameraDistance value with the Z and X keys. Instead of zooming, it looks like the model is scaled smaller or larger ...
3
votes
3answers
21k views

Unity3D Orbit around orbiting object (transform.RotateAround)

The best way to explain this is I'm attempting to make a small model solar system (not to scale or anything complicated, just simple rotation as a learning exercise). There's a sun, a planet, and that ...
0
votes
1answer
120 views

Computing orbit direction depending on angle of approach

I'm trying to develop a simple 2D space game with no friction using corona-sdk. In the game, I have several planets which all applies forces to the player according to Newton's law of universal ...
8
votes
3answers
662 views

Avoiding orbiting in pursuit steering behavior

I have a missile that does pursuit behavior to track (and try and impact) its (stationary) target. It works fine as long as you are not strafing when you launch the missile. If you are strafing, the ...
3
votes
2answers
567 views

how to calculate intersection time and place of multiple moving arcs

I have rocks orbiting moons, moons orbiting planets, planets orbiting suns, and suns orbiting black holes, and the current system could have many many layers of orbitage. the position of any object ...
8
votes
2answers
996 views

Elliptical orbit modeling

I'm playing with orbits in a simple 2-d game where a ship flies around in space and is attracted to massive things. The ship's velocity is stored in a vector and acceleration is applied to it every ...
4
votes
1answer
4k views

Orbiting a specific point - Orbiting Camera

How would I create a camera that with the mouse, it allows you to orbit around a specifc position, with the camera always facing that point? I would also like it to be able to always be at a constant ...