0
Answered

Multiply vector3 with scalar

Oliver Reischl 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 3

The multiply operation only allows vector3 inputs, which basically is the same behaviour as the vec3 scale function. The c# multiply operation in unity operates with a scalar. 


I mean, i can convert a float into a vec3, i'm just curious why that's the case? Have i missed something?

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
+3

You want to use Math > Generic > Multiply. Can multiply float times vectors just fine. If you use the scalar or vector based methods, you can't. Generic is intended for this purpose.

+1

Alright, got it. Thanks!