Questions tagged [direction]

The tag has no usage guidance.

9 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
97 views

Gerstner/Sinusoidal wave directional rotation (flow) in regards to ocean currents/trade winds

I'm trying to create an ocean simulation using Gerstner waves based on the GPU Gems: Effective Water Simulation from Physical Models. So far I've completed the directional wave functionality and ...
1
vote
0answers
590 views

How can I add two Vector3 directions together?

I have a direction to my target object, which is in a Vector3 format. I want cast a number of rays, as offsets from this initial direction. X is the object. D is the direction the player needs to ...
1
vote
0answers
2k views

How to translate a direction on the screen to 3D space?

EDIT: Alright, I've figured out what's wrong. I'm calculating the direction vector properly with the below code: ...
0
votes
0answers
17 views

Which is the best way to get the orientation angle for each direction (Forward, Right, Left, Backward)

I'm running into an issue for a while. The best way to find the orientation angle between 4 directions in a strafe locomotion mode. The character can move around in 4 directions. Having a velocity ...
0
votes
0answers
31 views

Player can only dash towards to the top right, but can't in any other direction?

I have a dash mechanic, but it only seems to be working when the player is going up, down, left, right, or to diagonally to the upper right. It won't work diagonally in any other directions, and I can'...
0
votes
1answer
435 views

Unity - Smooth player input direction when changing camera

Preface- I'm very new to Unity. I'm working on an exercise using fixed cameras like how they work in the PSX final fantasy games. I have the camera scripts working fine but it's an aspect of the ...
0
votes
1answer
467 views

Change sprite angle on sloping ground

I have a problem here with GameMaker built-in physics environment.My player is designed to be on a skateboard. I want my player to rotate its sprite, according to the kind of fixture(up or down slopes)...
-1
votes
2answers
142 views

Movement based on direction of car?

I'm currently making a simple racing game in libGDX. I am stuck on figuring out how to move my car object based on its direction. So far I have a class PlayerCar.java as shown below: ...
-2
votes
2answers
718 views

In XNA, how do I make a sprite move towards another?

I am making a shoot-em-up with a player-controlled sprite with a gun: I have most of the game working, but I have gotten to the point where I need to load in the enemy characters and make them move ...