This is probably more math then panda3d… but I’ve no idea where else to ask…
Imagine I have 3 attributes describing a character - like Speed, Defence and Damage. When a character progresses some of these attributes can change. Simple enough, right?
Here’s where it gets tricky - I want to visualize this change in the attributes using a triangle and a point. Each corner of the triangle represents a attribute and the point, or to be more precise it’s location, represents the relationship between the values of all tree attributes.
So it all starts with the point in the middle of the triangle and when one of the attributes is increased the point moves closer to the corner representing that attribute.
How would I draw this?
It’s exactly like a ‘RGB triangle’ when given R, G and B values, one needs to pinpoint a point on the triangle with that colour.
This is something like this:
Having the coordinates of T1, T2, and T3 and the values(length) of p1, p2 and p3, how do I determine the position of the P point (in T1,T2,T3 coordinate space)?
Any help is welcome, but code smiplets are more welcome that anything else
i want you to tell me what do you expect for the point in this situations:
all attributes are at minimum values
all attributes are at max values
all attributes have the same value
i expect from what you’ve described that the point in the two situations will be in the center, is that what you want ?
All values start at 0, the point at that time should be at the middle, just as every time the values are the same. I can’t say what a max value would be, lets say 1000 to keep it sane but the value is not that important. 5, 15, 50 should be the same point on the triangle as 1, 3, 10 or 253, 759, 2530.