Tagged Questions
0
votes
1answer
57 views
Mouse Aiming Causing Rotation Jitter
When our game's ships move around, mouse aiming causes them to shake around a lot. The body being aimed is moved kinematically. I think we've narrowed it down to this block of mouse tracking code.
...
3
votes
3answers
182 views
Getting correct angles between Vector3s
I'm working on a project where you can draw lines between points. You select one point and drag the mouse onto another point and a line is drawn between them.
The line itself is a 3d object which is ...
-2
votes
1answer
146 views
Moving A Sprite In The Direction Its Facing XNA [duplicate]
There are many questions on this site that explain this except they seem to all be in Java.
I want to move a sprite in the direction it's facing, in XNA. I know you must use Radians and lots of ...
3
votes
1answer
156 views
How rotate a 3D cube at its center XNA?
I try to rotate a 3D cube on itself from its center, not the edge.
Here is my code used.
public rotatemyCube()
{
...
Matrix newTransform = Matrix.CreateScale(scale) * ...
0
votes
0answers
36 views
save bones position after rotation un xna
i'm developping a game for solving a rubik's cube in xna framework c#
i want to know how to save bones positions after rotating them
i'm calling this method to draw bone witch construct the
...
0
votes
1answer
127 views
Smooth rotation [duplicate]
I would like to rotate my Player very smooth. At the moment the player stops rotating when I release the button. Also the rotation should get faster, if the player rotates longer. I use XNA and have ...
2
votes
2answers
222 views
Rotating a 2D Skeleton
I am currently implementing a 2D skeleton system in C# with XNA, but got stuck in how I would rotate the bones around a skeleton's axis.
A basic algorithm that I have figured out already would ...
1
vote
1answer
115 views
how to move the camera behind a model with the same angle? in XNA
I'm having difficulty moving my camera behind an object in a 3D world. I'd like to have two view modes:
for fps (first person).
external view behind the character (third person).
I've searched the ...
1
vote
2answers
309 views
Rotating multiple points at once in 2D
I currently have an editor that creates shapes out of (X, Y) coordinates and then triangulate that to make up a shape of those points.
What will I have to do to rotate all of those points ...
3
votes
2answers
515 views
How can I implement smooth rotation from one direction to another?
I'm having a problem with animating rotations with 1Matrix.CreateRotationY() with my basic 3D game. Based on where you click the mouse, I want the 3D object to rotate to that direction and then move.
...
7
votes
2answers
400 views
Rotate a vector
I want my first-person camera to smoothly change its viewing direction from direction d1 to direction d2. The latter direction is indicated by a target position t2.
So far I have implemented a ...
1
vote
1answer
636 views
Rotate to a set degree then stop Unity [closed]
I'm trying to make an object rotate up on the Y axis 90 degrees, then stop. I've got the rotating up bit working fine, it's getting it to stop once it hits 90.
Some of the things I've tried include ...
0
votes
1answer
234 views
(Quaternion based) Trouble moving foward based on model rotation
Using quaternions, I'm having trouble moving my model in its facing direction. Currently the model moves can move in all cardinal directions with no problems. The problem comes when I rotate the move ...
7
votes
1answer
837 views
Xbox thumbstick used to rotate sprite, basic formula makes it “stick” or feel “sticky” at 90 degree intervals! How do you get smooth rotation?
I am using a very basic formula to calculate what angle my sprite (spaceship for example) should be facing based on the Xbox controller thumbstick i.e. you use the thumbstick to rotate the ship.
In ...
0
votes
1answer
137 views
Move model forward base on model orientation
My model rotates on it's own Y-axis regardless of where it is in the world. Here are the controls for the left ThumbStick:
UP (move model forward on Z-Axis)
DOWN (move model backward on Z-Axis)
LEFT ...
0
votes
2answers
685 views
Rotate object Up/Down/Left/Right in any orientation
I'm rendering model at the origin with a fixed camera looking at it positioned on the z axis.
I want to be able to rotate the model up/down and left/right. Currently I have 2 variables, ...
7
votes
2answers
840 views
Calculating a quaternion so a bone points in a specified direction
In an attempt to solve this question, I decided to figure out the absolute (world space) directions of each joint in the source pose (as normalized unit vectors), and then rotate the joints of the ...
0
votes
1answer
100 views
Creating a 2D Line Branch (Part 2)
Yesterday i asked this question on how to create a 2D line branch;
Creating a 2D Line Branch
And thanks to the answered provided, i now have this nice looking main branch; *coloured to show the ...
2
votes
2answers
413 views
Passing an objects rotation down through its children
In my topdown 2d game you have a player with a sword, like an old Zelda game.
The sword is a seperate entity, and its collision box "rotates" around the player like an orbit, but always follows the ...
2
votes
4answers
1k views
How to make something rotate a certain amount over an exact amount of time
I'm trying to make a plane rotate down a certain amount and 180 degrees horizontally over 2 seconds.
Basically I want it to take the plane 1 second to rotate to a horizontal-facing angle, then take ...
1
vote
2answers
586 views
Transformation order when dealing with Meshes
I have created a player model out of primitive types. To do this I have created a Model class and Component (mesh) class. Each model consists of one or more components my problems start when you have ...
3
votes
3answers
464 views
How to calculate origin and position of a weapon which should be “in hands”?
I'm currently stuck with my game, which is from the top perspective. I'm currently using these sprites for player: (using the second at the top):
And here's what I use for my gun
My problem is ...
2
votes
1answer
487 views
Image spinning in c#
I'm currently in the process of making a top-down shooter for my programming class, and one idea I had, but don't exactly know how to implement is image rotation in order to spin the object ...
3
votes
1answer
828 views
Turning a sprite such that it rotates in the direction that's most efficient
I have a sprite that moves from waypoint to waypoint. It turns to face its velocity vector, but not instantly (there's a rotation speed).
The problem I'm having is, from one direction to another, the ...
1
vote
1answer
1k views
XNA - Use Mouse To Rotate & Arrow Keys To Scroll A Linearly Wrapped Texture:
Using XNA I'm working on my first, relatively simple, videogame for the PC.
At the moment my game window is 1024 X 768 and I have a 'Starfield' linearly wrapped background texture 1280 X 1280 in ...