is there anything like that currently implemented into MiniB3d, I know there is TFormVector and TFormNormal but wanted to clarify!
TFormpoint
BlitzMax Modules Forums/MiniB3D/TFormpoint Yes
Have you not downloaded it yet?
Function TFormPoint(x#,y#,z#,src_ent:TEntity,dest_ent:TEntity) Local mat:TMatrix=New TMatrix If src_ent<>Null mat.Overwrite(src_ent.mat) mat.Translate(x#,y#,-z#) x#=mat.grid[3,0] y#=mat.grid[3,1] z#=-mat.grid[3,2] EndIf If dest_ent<>Null mat.LoadIdentity() Local ent:TEntity=dest_ent Repeat mat.Scale(1.0/ent.sx,1.0/ent.sy,1.0/ent.sz) mat.RotateRoll(-ent.rz) mat.RotatePitch(-ent.rx) mat.RotateYaw(-ent.ry) mat.Translate(-ent.px,-ent.py,-ent.pz) ent=ent.parent Until ent=Null mat.Translate(x#,y#,-z#) x#=mat.grid[3,0] y#=mat.grid[3,1] z#=-mat.grid[3,2] EndIf tformed_x#=x# tformed_y#=y# tformed_z#=z# End Function
Have you not downloaded it yet?
short and simple : yes
Thanks alot, math was never my strong point