sorry for my bad english! I will try to explain the situation. Im just playing with this function because i want to understand how it works. The concept is really clear but debugging the forward of the object that i am debugging i get really weird output. For example im using InverTranformDirection(Vector3.Forward) to see what vector i get from the object child of another object. They are both perfectly aligned with their own axies. If i try rotate the parent of the object in order to have the forward pointing at (0,0,1) the child object that i am debugging has the same z axis value like it should have because they are alligned but if i rotate the parent to get the forward rotated on the (1,0,0) space cordinates, i get the cordinates inverted (-1,0,0). I mean why? Parent and child are pointing they own forward in the same exactly direction. Could you help me understand? Thanks!
Weird output debugging the forward of an object with InverseTranformDirection
60 views Asked by Vincent Mazzarella At
1
There are 1 answers
Related Questions in UNITY-GAME-ENGINE
- How to use invokerepeating and make ui text fade in/out over time?
- Player input not working properly in unity
- Get block in Mesh Unity
- Does Unity render invisible material?
- Physics.OverlapSphere couldn't detect my ‘Player’
- Cannot sync non-player objects in Unity mirror
- How to script a simple collision using hands in OVRCameraRigInteraction?
- Drawing on 3D object at Unity
- How to Override Spline Rotation for Player-Controlled Car in Racing Game?
- Why doesn't my enemy shield take damage first. Instead both enemy and shield are being destroyed together
- unity + Vuforia balck screen in android AR app
- how do I change an objects tag when the game closes
- How to remove white space in a user's input through an input field in Unity?
- Timeline doesn't start eventhough it recognises the trigger input
- Ragdoll 2D Aiming
Related Questions in MATH
- How to restrict vpasolve() to only integer solutions (MATLAB)
- Need clarification on VHDL expressions involving std_logic_vector, unsigned and literals, unsure about compiler interpretation
- What is the algorithm behind math.gcd and why it is faster Euclidean algorithm?
- How to throw a charged particle in a electric vector field?
- Issues with a rotation gizmo and sign flips when converting back to euler angles
- Solving the area of a 2 dimensional shape
- WorldToScreen function
- Algorithm to find neighbours of point by distance with no repeats
- Detecting Circles and Ellipses from Point Arrays in Java
- three parameter log normal distribution
- Bound for product of matrices
- Javascript animation taking incorrect amount of time to reach desired location
- Converting Math.js-like Expressions to Runnable Python Code
- Looking for a standard mathematical function that returns 0 if x = 0 and a constant k when x <> 0
- Partitions in co-lexicographic order (PARI/GP algorithm without recursion)
Related Questions in VECTOR
- Dynamic Nested Multi-Dimensional Arrays in Rust
- WorldToScreen function
- Unable to derive zerocopy::AsBytes on Vec<T> for struct T
- How can I add an element via emplace(pos, value) if I have a two-dimensional vector?
- Create Symbolic Function from Double Vector MATLAB
- Delete records in Datastax vector database
- Which is the most idiomatic way to parse an i32 from ascii in Rust
- Exponentiation of a vector
- How to create a vector of a specific class in c++ that includes thread objects in it?
- How can be the `$ operator is invalid for atomic vectors` error solved?
- R method for comparing NAs between two vectors
- Multiple child processes accessing the same vector
- Issue with intensities for Color Gradient in Vector Field with ggplot
- Multithreading vector multiplication
- Can spatial features be used as an input for a machine learning model?
Related Questions in INVERSE-TRANSFORM
- How to interpret inverse transformations estimates in linear regression?
- Simulate Poisson distribution with different lambdas using inverse CDF method
- How to print labels coming from inverse_transform when loading pkl file for test?
- How to make inverse_transform over a different df shape than the one where the fit was applied?
- Manual inverse transform calculation
- Inverse target variable scaling results in incorrect prediction results
- How to reverse reshaped array values back to normal values?
- Weird output debugging the forward of an object with InverseTranformDirection
- inverse normal transformation for gwas dataset
- Search specific permutation of permutationsubset with constraints
- trying to use y_pred = sc_y.inverse_transform(y_pred) but it says Reshape your data either using array.reshape(-1, 1) if your data has a single
- Unintended player movement from transform.InverseTransformDirection
- Back transform from normal (Gaussian) data to actual data
- Data Labels for Quantiles on an Inverse Hyperbolic Sine Scale in R (ggplot)
- Sklearn Label Encoder - Not getting desired output based on prediction and inverse transform
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
InverseTranformDirection(Vector3.Forward)wouldn't care about the parent at all. It is simply converting the world space global Z axis direction (=
(0, 0, 1)) into local space of the according object.I'd say it does exactly what you would expect.
Rotating your object to its own forward vector points towards
(1,0,0)(=Vector3.right= world X axis) basically means the world space forward vector(0, 0, 1)(=Vector3.forward) is now pointing left away from your object.Which is what
(-1, 0, 0)would mean in its local space.