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 best solutions below
Related Questions in UNITY-GAME-ENGINE
- Using arrow keys to rotate an object
- know object behind another object is fully visible
- Unity3d AudioSource not creatable
- Unity3d - Input.GetKey returns true more than once
- Flurry Ads on Unity3D with Prime31 plugin
- Make screenshot of DirectX window that is hidden and doesn't have focus
- Coroutine being detected as inactive despite being active
- Unity3D: Adding charged force in relation to position
- Unity - Particles emitting non-random
- 3d mouse aim camera 3rd person vertical C#
- Unity: How would I go about creating a power up system?
- Unity - Gui Button issues (Android)
- Unity3d strange Collider behaviour
- Start() function doesn't work properly after Application.LoadLevel
- Gravity works weird
Related Questions in MATH
- bc: prevent "divide by zero" runtime error on multiple operations
- How to round smoothly percentage in JS
- Calculate if trend is up, down or stable
- How to pick a number based on probability?
- Python 2.7 - find combinations of numbers in a list that add to another number
- How to translate an object to a location slowly (so that it can be seen)
- max() implemented with basic operators
- Matlab: how to fit time series with a funcion of a certain type
- 3D B-Spline approximation
- Issues with adding doubles. Arithmetic Coding
- Calculate new position post rotation
- Javascript: PI (π) Calculator
- How to compute a^^b mod m?
- Need Custom Query in SQL Server
- Number of divisiors upto 10^6
Related Questions in VECTOR
- C++ using std::vector across boundaries
- Mayavi - color vectors based on direction instead of magnitude
- Concatenate numbers in a vector to form one number
- C++ 2D vector - Convert int to double
- Downcast from a container of Base* to Derived* without explicit conversion
- Assigning values in a vector in non-sequential order
- Is it possible to find an element in a Vec<T> and remove it?
- Vector of Vector of object
- How to detect null values in a vector
- MatLab 3-vector plot/mesh with colour-scale
- How to create spaces in a textbox?
- libc++ difference between vector::insert overloads
- Make a character vector a numeric vector in R?
- Spacing errors while printing vector to JTextArea
- How to factor a vector (times it by itself a set number of times)?
Related Questions in INVERSE-TRANSFORM
- Is there no "inverse_transform" method for a scaler like MinMaxScaler in spark?
- Generating a uniform distribution (inverse-transformation)
- Value Error while using scaler.inverse_transform in Python
- what are difference wavelet inverse transformation and wavelet transformation
- How to perform inverse transformation of exponential decay time series data
- Inverse calculator modulo Python
- How to scale back target variable using inverse_transform
- Python - How to reverse the encoding of data encoded with LabelEncoder after it has been split by train_test_split?
- Back transform from normal (Gaussian) data to actual data
- Unintended player movement from transform.InverseTransformDirection
- Generate random variable with known PDF expression in MATLAB
- Burrows-Wheeler Transform (BWT) repeating string
- inverse laplace transform of generalized continued fractions using Python, Sympy
- SQL Statement - SELECT the inverse of this query
- How to print labels coming from inverse_transform when loading pkl file for test?
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)
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?
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.