Why is there no tangent node?
Hi I'm working on a material, and I am trying to avoid custom node (because it might be slower). However at some point I want to calculate an angle, but I noticed there is no atan2 node or any other tangent node in the material editor. There are sin and cos nodes though. Why is this not there, or is it under a different name?
Alright, there is a ticket in for a Tangent material node like there is for sine and cosine.
The ticket number is UE-21943.
answered Oct 08 '15 at 09:18 PM
In math, Tang is the division of Sin over Cosine (Sin/Cosine). Actually there is a node called divide. I believe by dividing Sin by Cosine (linking Sin to pin 'A' and Cosine to pin 'B', you should have your Tang function in result. Here take a look at my graph for instance.
An important thing that you should note, is that both Sin and Cosine nodes have to link to a same node, otherwise you won't have the correct result. Actually this is all a theory I'm not pretty sure that in materials this is going to work. But in math it does. ;D
Follow this question
Once you sign in you will be able to subscribe for any updates here