Announcement

Collapse
No announcement yet.

issues with Normal vector values being "floored" incorrectly

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    issues with Normal vector values being "floored" incorrectly

    i have a normal Vector, that when it reads "-0.0" and then gets Floored to an int, becomes "-1"
    Is this correct? if so, why does it happen
    if not, should I bug report?

    #2
    Hello,
    Floor removes the fraction from any number keeping only the integer (e.g. where 0.9 becomes 0 or 1.9 becomes 1, etc.). based on 1.4 Floor, from https://docs.unrealengine.com/latest...all/index.html tehn -.00001 becomes -1

    You'd better try to use fceil (which will do like floored but with int +1 or round which will select the nearest one (depending your goal)
    Last edited by Fen; 11-22-2014, 10:55 AM. Reason: more precisions

    Comment

    Working...
    X