An interactive 3D simulation to help understand neutron stars, their properties, and how they behave.
Neutron stars are among the most amazing and extreme objects in space. They are very dense and have strong magnetic fields and spin very fast. It's hard to imagine them just by reading books. Our project is an interactive 3D simulation that helps you explore and understand these complex objects. You can change their size, heat, magnetic field, and how fast they spin to see what happens.
This tool is for students, teachers, and anyone who loves astronomy. It makes learning about neutron stars easier and more fun by letting you see and interact with them in a virtual world. It also helps scientists test their ideas and understand real observations better.
Learning about neutron stars can be very difficult. Textbooks often use only words and diagrams, which don't show how dynamic and extreme these stars really are. This makes it hard for students to truly grasp ideas like their super density, strong magnetic fields, or fast spinning. Our simulation was created to break this barrier, offering a clear and engaging way to learn.
As a key member of Group Number 10 for this Final Year Project, my main role was in creating and developing the core simulation model of the neutron star.
My responsibilities included:
My team members also played vital roles:
Together, our team turned complex science into a fun, educational, and accurate simulation.
While this project was developed in Unity, which isn't directly web-based like PhySim, we aim to provide a demo soon. For now, you can view videos and images of the simulation in action below.
A video showing the interactive features and visual effects of the simulation.
This interactive 3D simulation was built using Unity 3D, which is a powerful platform for real-time graphics. We used C# as the programming language. The Universal Render Pipeline (URP) was used for optimized graphics.
The core logic involves updating the neutron star's appearance and behavior based on user input. For example, here's a simplified look at how the camera is controlled in the simulation:
// Simplified Camera Controller Script in Unity (C#)
public class CameraController : MonoBehaviour
{
public Transform target; // The object to orbit around (our Neutron Star)
public float distance = 50f; // How far the camera is from the star
public float orbitSpeed = 10f; // Speed of orbiting with mouse
private float currentX = 0f;
private float currentY = 0f;
void Start()
{
// Find the neutron star if not set
if (target == null && GameObject.Find("NeutronStar") != null)
{
target = GameObject.Find("NeutronStar").transform;
}
// Set initial camera angles
Vector3 angles = transform.eulerAngles;
currentX = angles.y;
currentY = angles.x;
}
void LateUpdate()
{
if (target == null) return;
// Handle mouse input for orbiting
if (Input.GetMouseButton(1)) // Right mouse button
{
currentX += Input.GetAxis("Mouse X") * orbitSpeed;
currentY -= Input.GetAxis("Mouse Y") * orbitSpeed;
currentY = Mathf.Clamp(currentY, -80f, 80f); // Limit vertical movement
}
// Calculate camera position and rotation
Vector3 dir = new Vector3(0, 0, -distance);
Quaternion rotation = Quaternion.Euler(currentY, currentX, 0);
transform.position = target.position + rotation * dir;
transform.rotation = rotation;
}
// Other functions for arrow key movement and zoom (as in your report)
// ...
}
This Final Year Project was a huge learning journey for me. I gained new skills and improved existing ones:
I learned how to build complex 3D interactive simulations using Unity, focusing on realistic physics and engaging visual effects.
I became skilled in using Shader Graph to create dynamic visual effects, like temperature-based color transitions and magnetic field visualizations.
I learned to translate real astrophysical data and theories into a working simulation, ensuring scientific accuracy in how parameters interact.
I gained practical experience in designing and implementing intuitive user interfaces that are easy to navigate and work well on different devices.
Working in a team, I learned how to divide tasks, collaborate effectively, and ensure a high-quality final product.
This project greatly improved my understanding of neutron stars, their extreme properties, and complex astrophysical concepts.
We tested the simulation with second-year physics students from NED University of Engineering and Technology to see how well it worked and how effective it was for learning.
Students loved adjusting parameters like radius and rotation speed to see instant changes. This active way of learning made abstract ideas much clearer and sparked many questions.
A large majority (85%) of students said the simulation helped them learn more about neutron stars. They found it easy to understand (majority found it easy or very easy) and felt their understanding of neutron stars improved significantly after using it.
Overall, 90% of participants confirmed that the physical phenomena were accurately shown, and about 95% would recommend the simulation to others, showing high satisfaction.
Do you need an expert in 3D simulations or educational technology? I love turning complex scientific ideas into clear, interactive, and engaging experiences.
Get in Touch