Search Feedback

74
votes

Vector3Int.forward and Vector3Int.back

Scripting

-

-

Static property shorthands to match what Vector3 offers.

Vector3Int.negativeInfinity and Vector3Int.positiveInfinity would also be nice.

Comments (4)

  1. 2a3d32fa302ca4965ac50fa7aa3d98ad?d=mm

    ratking

    Sep 19, 2018 09:11

    Even with Unity 2018.3b, Vector3Int.forward and Vector3Int.back are missing, what the heck.

  2. A3a591352026724bf414c9dd4652ffc6?d=mm

    FVRUnity1

    Aug 08, 2018 13:35

    Must simply be an oversight, can't see any reason why else they'd be missing...

  3. 268e488556c0e9e604ef13d23f63ce62?d=mm

    ModLunar

    May 21, 2018 19:48

    Yeah I wonder why these weren't added already to Vector3Ints, cause they would be very useful!

  4. 90ae2ed3429ef8ab4087fb7105407bd6?d=mm

    Bunny83

    Feb 11, 2018 13:08

    I agree that forward and back should be there since they have included all the other directions (up, down, left, right).

    Something like "Vector3Int.negativeInfinity" wouldn't make much sense since an integer can't represent infinity. Infinity is a floating point concept that doesn't apply to ints.

    If you want just the largest / smallest possible vector you can use

    Vector3Int.one * int.MaxValue;
    Vector3Int.one * int.MinValue

    MaxValue is just the constant "2,147,483,647", MinValue is "-2,147,483,648"

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(10889)

2D

(287)

Ads

(57)

AI & Navigation

(81)

Analytics

(130)

Animation

(406)

Asset Store

(364)

Asset Store Publisher

(19)

Assets

(551)

Audio

(185)

Cloud Build

(148)

Collaborate

(68)

Docs & Tutorials

(247)

Editor

(2545)

Everyplay

(17)

Game Performance Reporting

(21)

General

(987)

Graphics

(894)

GUI

(442)

Input

(173)

Licensing

(93)

Networking

(190)

Physics

(387)

Platforms

(445)

Profiling & Optimization

(84)

Runtime

(185)

Scripting

(1141)

Terrain

(174)

WebGL

(142)