Xojo Conferences
XDCMay2019MiamiUSA
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

SCNBillboardConstraintMBS class

Super class: SCNConstraintMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class SceneKit MBS Mac64bit Plugin 19.1 Yes No No Yes, macOS only No
Function: A constraint that orients a node to always point toward the current camera.
Notes:
An SCNBillboardConstraint object automatically adjusts a node’s orientation so that its local z-axis 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. To attach constraints to an SCNNodeMBS object, use its constraints property.
Subclass of the SCNConstraintMBS class.

Feedback, Comments & Corrections

Axes

Constant Value Description
SCNBillboardAxisAll 7 Align an affected node such that its orientation always matches that of the view.
This is the default option for newly created billboard constraints.
SCNBillboardAxisX 1 Align an affected node such that its x-axis is always parallel to that of the view, leaving it free to rotate otherwise.
SCNBillboardAxisY 2 Align an affected node such that its y-axis is always parallel to that of the view, leaving it free to rotate otherwise.
SCNBillboardAxisZ 4 Align an affected node such that its z-axis is always perpendicular to the viewing plane, leaving it free to rotate otherwise.

Super class SCNConstraintMBS

This class has no sub classes.


The items on this page are in the following plugins: MBS Mac64bit Plugin.


SCNAvoidOccluderConstraintMBS   -   SCNBoxMBS




Links
MBS Xojo Plugins