Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

A few Sphere questions.

$
0
0

@MuntyScruntFundle wrote:

So, the hospital stay starts tomorrow and I really want to spend the free time productively, so I've been looking for some answers to 3D trig problems, and it's possible I've found them, but I'm really crap with math notation, I don't understand all the symbols. Of course it's possible the wifi will be terrible and I wont see any replies anyway, but here goes.

So I'm looking for answers to the following:

A way to check if an object is inside/outside a sphere. I've got this working using a bounding sphere without an object, but I think there must be a less expensive way.

If an object is deemed to be at the edge of a sphere, how to move it's location to the absolute opposite of the sphere.

And then camera work, I have an idea for a game where you fly through an asteroid field. I think keeping the camera at 0,0,0 and moving all the objects will work better than the other way around as I wont be worried about location numbers escalating. I'll need some good documentation for pitch, yaw etc, and how to move objects around the camera according to the camera angle.

If anyone could please link me some reading material or examples I would appreciate it so much.
Thank you.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles