4 Replies
Extension methods only work on instances and cannot be used in a static context like you are trying to.
is there any other way around it?
Now there are two paths you could take, make it so you call velocity = velocity.ClampLength(MAX_SPEED) or have a static helper class velocity = Vector3Helper.ClampLength(velocity, MAX_SPEED). And probably some other options too
sure thanks!