HI, I'm trying to build a kind of cube with text hotspots to draw collision limits.
The "bottom" face would be the main and the front,left,rear,and right would be linked to the bottom.
I managed to calc the 3d position depending on width or height of the bottom hotspot but I'm a bit lost to calc thoses positions if I rotate the bottom face with rx, I know I have to use cos(rx) and sin(rx) in the tx and tz values of the linked elements but my maths are horrible and I didn't managed to make it work...
If someone knwos the formula ?
Many thanxs
sample of basic code to link one face to the bottom :
Code
<hotspot name="plane" type="text" width="100" height="100" bgalpha="0.3" tx="0" ty="50" tz="150" depth="0" distorted="true" rx="90" ry="90" rz="-90" scale="0.2" onclick="add(rx,10)"/>
<hotspot name="point" type="text" width="100" height="100" bgcolor="0xff0000" bgalpha="0.3" edge="bottom" tx="link:hotspot[plane].tx" ty="link:hotspot[plane].ty" tz="link:hotspot[plane].tz|hotspot[plane].height:hotspot[plane].tz + (hotspot[plane].height * 0.2)" depth="0" distorted="true" scale="0.2"/>