Welcome to the Creatures Wiki! Log in and join the community.

POSL

From Creatures Wiki
Revision as of 23:04, 15 December 2019 by ScoobyGambit (talk | contribs) (→‎Examples)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
POSL
This article is about a CAOS command or function.
Category [[:Category:CAOS:|]]
Version C2/CV/C3/DS
Command
Parameters
Function
Parameters
Return type [[CAOS types|]]
Related
CAOS POSX, POSY, POSR
Concepts

POSL is a CAOS function used to check where the leftmost part of an object is, in terms of its bounding box.

Usage[edit]

Function[edit]

Syntax: POSL (float)

Returns left position of target's bounding box.

Examples[edit]

From Making a Vendor for C3, used to find the point where the object will come out of the vendor:

setv va00 posl
addv va00 30
setv va01 post
addv va01 10

Note the addition will draw the final vend-point rightwards from that leftmost position.