AppleSCNBillboardConstraint - UBogun/Xojo-iosLib GitHub Wiki
Inherits from AppleSCNConstraint
Memory leak check: not yet done.
Status: complete.
An SCNBillboardConstraint object automatically adjusts a node’s orientation so that it always points toward the pointOfView node currently being used to render the scene. For example, you can use a billboard constraint to efficiently render parts of a scene using two-dimensional sprite images instead of three-dimensional geometry—by mapping sprites onto planes affected by a billboard constraint, the sprites maintain their orientation with respect to the viewer.
See the superclass for additional features of constraints
BillboardConstraints are only available from iOS 9.0 on upwards!
##Constructor Constructor (): Creates a new billboard constraint object. Available since iOS 9.0.
Properties
FreeAxes As AppleSCNBillboardAxis: An option that specifies which degrees of freedom the constraint affects.
AppleSCNBillboardAxis
is a helper class that wraps around an UInteger value, the real property behind FreeAxes. Use it for easier manipulation of the axes:
XAxis As Boolean: Align an affected node such that its x-axis is always parallel to that of the view, leaving it free to rotate otherwise.
YAxis As Boolean: Align an affected node such that its y-axis is always parallel to that of the view, leaving it free to rotate otherwise.
ZAxis As Boolean: Align an affected node such that its z-axis is always parallel to that of the view, leaving it free to rotate otherwise.
Shared Property All As AppleSCNBillboardAxis: Align an affected node such that its orientation always matches that of the view. This is the default option for newly created billboard constraints.