|
|
On 2/26/2018 8:26 PM, Bald Eagle wrote:
> Mike Horvath <mik### [at] gmailcom> wrote:
>> I have a three coordinates.
>>
>> // bounding box
>> L3ModelBBoxMin = <-1280,-428,-960>
>> L3ModelBBoxMax = <1280,0,-160>
>>
>> // camera location
>> L3Location = <2413.395250,-1636.367750,-2657.726250>
>>
>>
>> How do I determine the corner of the bounding box that is nearest the
>> camera? Thanks.
>>
>>
>> Mike
>
> Define the corners you want to test, and calculate the vlength between the
> corners and the camera location. Then use min().
>
>
I get an error when I try to set the value of a vector's x-coordinate.
#local NearCorner.x = BBoxMin.x;
What is the correct way to set this coordinate?
Mike
Post a reply to this message
|
|