Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5940163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:55:49+00:00 2026-05-22T15:55:49+00:00

i am making 3D Simulation of Solar System for every planet i have an

  • 0

i am making 3D Simulation of Solar System

for every planet i have an instance of class Celestial Body. I am using the following code for revolution and rotation of sun, planets & their moons.

world = Matrix.CreateTranslation(0,0,0) * Matrix.CreateRotationY(rotation) * Matrix.CreateTranslation(position) * Matrix.CreateRotationY(revolution); 
  • rotation is my float variable for rotation of planet around its own axis
  • revolution is my float variable for revolution of planet in orbit
  • position is to my vector3 variable to put the body in orbit or at its radius from center e.g postion = new Vector3(70,0,0)

Now it works really fine.

But the problem is i need to locate \ get the position of my planet, to where it has been translated after the Matrix multiplication literally in x,y,x co-ordinates.

How To ? get the current X , Y , Z coordinates of my planet

the other option for me would be to use some maths formula that calculates a 2D circle for me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T15:55:50+00:00Added an answer on May 22, 2026 at 3:55 pm

    I think what you’re looking for is Matrix.Translation. This gives you the x, y, z co-odinates of the matrix that it’s called on in a Vector3.

    So, to get the new position, you should use

    Vector3 newPosition = world.Translation;
    

    after your calculations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making a simulation using python 2.6 + Simpy, about the subway system.
Context: I'm making a simple solar system simulation in c++/OpenGL. Research: I've tried searching
So I am working on a simulation of the solar system and ran into
I'm making a monte carlo simulation in C++ and I was using Boost for
I'm making a simulation of the thinking and remembering process, and I have various
consider I have the following code in python module a.py : def func(): obj
I'm making a zero-player c# wpf football simulation and I have the field laid
I am making a game in java and I want to create a simulation
I ran into the situation where my class is making one asynchronous web call
I'm making an image viewer using openGL and I've run into a situation where

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.