Platforms to show: All Mac Windows Linux Cross-Platform
SCNVector4MBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | SceneKit | MBS Mac64bit Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
SceneKit uses four-component vectors to represent multiple kinds of data:
- Axis-angle rotation or torque. The x, y, and z fields contain the normalized x-, y-, and z-components of the rotation axis, and the w field contains the rotation angle, in radians, or torque magnitude, in newton-meters.
- Color value (or range). The x, y, z, and w fields contain the red, green, blue, and alpha components of the color, or the width of the color variation range in each component.
- 4 properties
- 3 methods
- method Constructor(x as double = 0.0, y as double = 0.0, z as double = 0.0, w as double = 0.0)
- method copy as SCNVector4MBS
- method equals(other as SCNVector4MBS) as boolean
- 2 shared methods
This class has no sub classes.
Some methods using this class:
- SCNActionMBS.rotateToAxisAngle(axisAngle as SCNVector4MBS, duration as double) as SCNActionMBS
- SCNNodeMBS.localRotateBy(rotation as SCNVector4MBS)
- SCNNodeMBS.rotateBy(worldRotation as SCNVector4MBS, worldTarget as SCNVector3MBS)
- SCNPhysicsBodyMBS.applyTorque(torque as SCNVector4MBS, impulse as Boolean)
Some properties using for this class:
- SCNNodeMBS.orientation as SCNVector4MBS
- SCNNodeMBS.Rotation as SCNVector4MBS
- SCNNodeMBS.worldOrientation as SCNVector4MBS
- SCNPhysicsBodyMBS.angularVelocity as SCNVector4MBS
- SCNReplicatorConstraintMBS.orientationOffset as SCNVector4MBS
Some examples using this class:
Blog Entries
Release notes
- Version 19.1
- Added SCNVector4MBS, SCNMatrix4MBS, SCNVector3MBS, SCNMaterialPropertyMBS and SCNMaterialMBS classes for SceneKit.
The items on this page are in the following plugins: MBS Mac64bit Plugin.