Addition is broken. (just a question of what the correct syntax is)

I have been working on making some rotation-minimizing frames and I came across a problem.
This problem is general to different things I have encountered

local firstpart = 2*(1 - twot)(p1*p0)

I get an error that says “attempt to call a number value”.

It should be the following:

local firstpart = 2*(1 - twot)*(p1*p0)

When you multiply two numbers, you have to add a * between them-- it will not be added implicitly.


So what are the variables twot, p1 & p0?
Also, is that twot, or two space t?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.