Platforms to show: All Mac Windows Linux Cross-Platform
SCNBillboardConstraintMBS class
Super class: SCNConstraintMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | SceneKit | MBS Mac64bit Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
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.
- property freeAxes as Integer
- method Constructor
- shared method billboardConstraint as SCNBillboardConstraintMBS
- 4 constants
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
- 4 properties
- property Enabled as Boolean
- property Handle as Integer
- property Incremental as Boolean
- property influenceFactor as Double
- 2 methods
- method Constructor
- method copy as SCNConstraintMBS
This class has no sub classes.
Blog Entries
Release notes
- Version 19.1
The items on this page are in the following plugins: MBS Mac64bit Plugin.
SCNAvoidOccluderConstraintMBS - SCNBoxMBS