Vector.length - can only set int values?
Posted: Tue Oct 25, 2016 4:22 pm
Hey there,
I've come across a fact that the Vector's length property only accepts integer values:
/src/core/modules/mathlib/mathlib.h#L47
Trying to do something like
raises Boost.Python.ArgumentError
Is this intended and I should change my plugin?
I've come across a fact that the Vector's length property only accepts integer values:
/src/core/modules/mathlib/mathlib.h#L47
Trying to do something like
Syntax: Select all
speed_cap = 32.0
velocity = player.velocity
velocity.length = speed_cap
raises Boost.Python.ArgumentError
Is this intended and I should change my plugin?