Class SCNPhysicsField

    • Constructor Detail

      • SCNPhysicsField

        protected SCNPhysicsField​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • dragField

        public static SCNPhysicsField dragField()
        Slows an object proportionally to the object’s velocity. Use this to simulate effects such as friction from motion through the air.
      • electricField

        public static SCNPhysicsField electricField()
        A force proportional to the charge on the object. An example use of this field is to make objects behavior differently from one another when they enter a region, or to make an object's behavior different than its mass based behavior This field models the first part of the Lorentz equation, F = qE
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • linearGravityField

        public static SCNPhysicsField linearGravityField()
        Applies a force in the direction of the "direction" vector in the local space. To repel objects, use a negative strength. The force is the same everywhere in the field. Varies with the mass of the object according to F = ma The field node's rotation property can be used to orient the gravity in a particular direction.
      • magneticField

        public static SCNPhysicsField magneticField()
        A force proportional to the charge on the object and the object’s velocity. An example use of this field is to make objects behavior differently from one another when they enter a region, or to make an object's behavior different than its mass based behavior This field models the second part of the Lorentz equation, F = qvB
      • new_objc

        public static java.lang.Object new_objc()
      • noiseFieldWithSmoothnessAnimationSpeed

        public static SCNPhysicsField noiseFieldWithSmoothnessAnimationSpeed​(double smoothness,
                                                                             double speed)
        A time varying differentiable Perlin simplex noise field. A smoothness of 0 means as noisy as possible. Use this to simulate such effects as fireflies, or snow. To freeze the noise in place, set animationSpeed to 0.0. Mass is ignored. You can change the "smoothness" and "animationSpeed" using KVC.
      • radialGravityField

        public static SCNPhysicsField radialGravityField()
        Applies a force in the direction of the origin of the field in local space. To repel objects, use a negative strength. The force is proportional to the distance from the field origin. Varies with the mass of the object according to F = ma The field node's rotation property can be used to orient the gravity in a particular direction.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • springField

        public static SCNPhysicsField springField()
        A Hooke’s law force - a force linearly proportional to distance from the center of the field. An object in this field will oscillate with a period proportional to the inverse of the mass. An example use is to keep objects confined to a particular region.
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • turbulenceFieldWithSmoothnessAnimationSpeed

        public static SCNPhysicsField turbulenceFieldWithSmoothnessAnimationSpeed​(double smoothness,
                                                                                  double speed)
        Just like Noise, except the strength of the noise is proportional to the velocity of the object in the field.
      • version_static

        public static long version_static()
      • vortexField

        public static SCNPhysicsField vortexField()
        Applies a force tangential to the direction from the sample point to the field's position. The force will be CCW to the direction. Make the strength negative to apply force in the CW direction. Amount is proportional to distance from center and the object's mass. Use this to create effects such as tornadoes.
      • categoryBitMask

        public long categoryBitMask()
        [@property] categoryBitMask Determines the node physicsBody's categories that will be influenced by the receiver. Defaults to all bit set.
      • copyWithZone

        public java.lang.Object copyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • direction

        public SCNVector3 direction()
        Direction of the field. Only applies to linear gravity and vortex fields. Defaults to (0,-1,0).
      • falloffExponent

        public double falloffExponent()
        Changes the power of the force based on the distance from the center of the field (1 / distance ^ falloffExponent). Defaults to 0.0.
      • halfExtent

        public SCNVector3 halfExtent()
        Specifies the half extent of the area of effect. Defaults to FLT_MAX.
      • isActive

        public boolean isActive()
        Specifies whether force field is active or not. Defaults to YES.
      • setActive

        public void setActive​(boolean value)
        Specifies whether force field is active or not. Defaults to YES.
      • isExclusive

        public boolean isExclusive()
        If YES, it suppresses any other field in its area. Defaults to NO.
      • setExclusive

        public void setExclusive​(boolean value)
        If YES, it suppresses any other field in its area. Defaults to NO.
      • minimumDistance

        public double minimumDistance()
        Distance from the center of the field where the effect is at full strength. Defaults to 1e-6.
      • offset

        public SCNVector3 offset()
        Offset of origin effect within the area.
      • scope

        public long scope()
        Controls whether the force field should apply inside or outside of the area. Defaults to inside.
      • setCategoryBitMask

        public void setCategoryBitMask​(long value)
        [@property] categoryBitMask Determines the node physicsBody's categories that will be influenced by the receiver. Defaults to all bit set.
      • setDirection

        public void setDirection​(SCNVector3 value)
        Direction of the field. Only applies to linear gravity and vortex fields. Defaults to (0,-1,0).
      • setFalloffExponent

        public void setFalloffExponent​(double value)
        Changes the power of the force based on the distance from the center of the field (1 / distance ^ falloffExponent). Defaults to 0.0.
      • setHalfExtent

        public void setHalfExtent​(SCNVector3 value)
        Specifies the half extent of the area of effect. Defaults to FLT_MAX.
      • setMinimumDistance

        public void setMinimumDistance​(double value)
        Distance from the center of the field where the effect is at full strength. Defaults to 1e-6.
      • setOffset

        public void setOffset​(SCNVector3 value)
        Offset of origin effect within the area.
      • setScope

        public void setScope​(long value)
        Controls whether the force field should apply inside or outside of the area. Defaults to inside.
      • setStrength

        public void setStrength​(double value)
        The strength factor of the force field. Defaults to 1.0.
      • setUsesEllipsoidalExtent

        public void setUsesEllipsoidalExtent​(boolean value)
        YES means that the area of effect is rounded within the extent. Defaults to NO.
      • strength

        public double strength()
        The strength factor of the force field. Defaults to 1.0.
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • usesEllipsoidalExtent

        public boolean usesEllipsoidalExtent()
        YES means that the area of effect is rounded within the extent. Defaults to NO.