Page MenuHomeFeedback Tracker

[Feature Request] New vector operation command: vectorFromTo2D
Closed, ResolvedPublic

Description

2D vector operations are just as important as the 3D ones and having individual commands for them is very useful for faster vector operations.

Command syntax:

vector1 vectorFromTo2D vector2

vector1: 2D or 3D vector (Z component is ignored)
vector2: 2D or 3D vector (Z component is ignored)

return: Unit 3D vector (vectorMagnitude == 1) with Z=0

This command can, for example, be used to get the vector direction from position A to position B for using with setVectorDir

P.S: I know we can use setDir, but that one is not suitable for per frame codes.

Details

Severity
Feature
Resolution
Fixed
Reproducibility
N/A
Operating System
Windows 7
Category
Feature Request
Additional Information

Complementary commands:
vectorCos2D: https://feedback.bistudio.com/T152657
vectorAdd2D/vectorDiff2D: https://feedback.bistudio.com/T152659

Event Timeline

Leopard20 edited Additional Information. (Show Details)Jul 13 2020, 7:59 PM
Leopard20 edited Additional Information. (Show Details)Jul 13 2020, 8:10 PM

Added support for 2d vectors in 1.99.146539

BIS_fnc_KK closed this task as Resolved.Jul 19 2020, 6:17 PM
BIS_fnc_KK changed Resolution from Open to Fixed.