Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Linear algebra is the branch of mathematics concerning vector spaces and linear mappings between such spaces. The tag is generally used for questions regarding calculations over vectors.
0
votes
1
answer
438
views
How to Calculate Caridnal Direction from Unit Vector
I have unit Vector of acceleration in local space of object.
Now I want to calculate Cardinal Direction from (North, East, South, West).
So Far I tried to:
FQuat QRot = LocalAcceleration.ToOrientati …
0
votes
Accepted
How to Calculate Caridnal Direction from Unit Vector
Here is solution:
float Atan2Angle = FMath::Atan2(LocalVelocity.Y, LocalVelocity.X);
int32 Dir = FMath::RoundToInt((Atan2Angle * 2 / PI) + 4) % 4;
LocalVelocity - Unit vector of character velocity …
0
votes
0
answers
199
views
Calculate smooth transition between local space angles
I'm trying to calculate direction of moving character (to rotate it's animation).
I have something like this:
Character can have 4 cardinal directions. The rotation is calculated from the current ca …