Platforms to show: All Mac Windows Linux Cross-Platform
SCNPhysicsFieldMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | SceneKit | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
You can create many types of field effects, such as gravitation, electromagnetism, and turbulence. To add a field effect to a scene, you create a physics field of the type you want to use and then attach it to the physicsField property of a node in the scene.
Physics fields can affect both SCNPhysicsBodyMBS objects and the particles spawned by SCNParticleSystemMBS objects.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 12 properties
- property Active as Boolean
- property CategoryBitMask as Integer
- property direction as SCNVector3MBS
- property Exclusive as Boolean
- property falloffExponent as Double
- property halfExtent as SCNVector3MBS
- property Handle as Integer
- property minimumDistance as Double
- property offset as SCNVector3MBS
- property Scope as Integer
- property strength as Double
- property usesEllipsoidalExtent as Boolean
- 2 methods
- method Constructor Private
- method copy as SCNPhysicsFieldMBS
- 10 shared methods
- shared method customField(FieldForceEvaluator as SCNFieldForceEvaluatorMBS, tag as variant = nil) as SCNPhysicsFieldMBS
- shared method dragField as SCNPhysicsFieldMBS
- shared method electricField as SCNPhysicsFieldMBS
- shared method linearGravityField as SCNPhysicsFieldMBS
- shared method magneticField as SCNPhysicsFieldMBS
- shared method noiseField(smoothness as double, animationSpeed as double) as SCNPhysicsFieldMBS
- shared method radialGravityField as SCNPhysicsFieldMBS
- shared method springField as SCNPhysicsFieldMBS
- shared method turbulenceField(smoothness as double, animationSpeed as double) as SCNPhysicsFieldMBS
- shared method vortexField as SCNPhysicsFieldMBS
- delegate SCNFieldForceEvaluatorMBS(position as SCNVector3MBS, velocity as SCNVector3MBS, mass as single, charge as single, time as double, Tag as Variant) as SCNVector3MBS
- 2 constants
Scopes
Constant | Value | Description |
---|---|---|
kScopeInsideExtent | 0 |
The field’s effect applies only to objects within the region of space defined by its position and extent. |
kScopeOutsideExtent | 1 |
The field’s effect applies only to objects outside the region of space defined by its position and extent. |
This class has no sub classes.
Some properties using for this class:
- SCNNodeMBS.physicsField as SCNPhysicsFieldMBS
The items on this page are in the following plugins: MBS Mac64bit Plugin.
SCNPhysicsContactMBS - SCNPhysicsHingeJointMBS