Vector division (FIXED)

#1

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

#2

v*0.5 as quick solution?

v*(1/x)

1 Like

#3

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

3 Likes

#4

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

1 Like

#5

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

0 Likes

#6

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

0 Likes

#7

We added support for vector3/4 division in 1.2.161

4 Likes