Tagged Questions
2
votes
1answer
297 views
How can I create a 2D camera with upscaling and translation?
I've computed a Viewport that is fair in size (a proper aspect ratio to the given device) and then I calculate my ScaleMatrix like so:
scaleMatrix = Matrix.CreateScale(
(float) ...
6
votes
3answers
377 views
Transforming a primitive tetrahedron into a primitive icosahedron?
I've created a tetrahedron by creating a BoundingBox and building the faces of the tetrahedron within the bounding box as follows (see image as well):
VertexPositionNormalTexture[] vertices = new ...
-1
votes
2answers
131 views
How to transform gameObjects in array? [closed]
I have an array of available gameObjects in the scene. An array of GO should be transformed according to received floats through UDP connection. I know it is simple, but can't figure it out how to ...
0
votes
0answers
100 views
Translating multiple objects in GUI based on average position? [closed]
I use this method to move a single object in 3D space, it accounts for a local offset based on where the cursor ray hits the widget and the center of the widget.
var cursorRay = cursor.Ray;
...
1
vote
2answers
185 views
Transforming bounding spheres
When testing bounding spheres as part of the collision detection process, I'm using this method:
public static BoundingSphere TransformBoundingSphere(Matrix m, BoundingSphere b)
{
var ...