Vector division (FIXED)

Just a small request.
This annoys me every time.

local v = vmath.vector3()
local new_vector1 = v * 2 -- works fine
local new_vector2 = v / 2 -- throws error
3 Likes

v*0.5 as quick solution?

v*(1/x)

1 Like

Yes :slight_smile:
More of an inconsistency annoyance than a difficult problem

3 Likes

…And a very good way to avoid division by zero. :wink:

1 Like

I think I reported this in an old JIRA somewhere. Will check.

Well, yes I guess that could actually very well be the reason why you don’t allow it :slight_smile: .

We added support for vector3/4 division in 1.2.161

4 Likes