public class SKFieldNode extends SKNode
SKNode.Block_enumerateChildNodesWithNameUsingBlock, SKNode.Block_runActionCompletionNSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retUIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler| Modifier | Constructor and Description |
|---|---|
protected |
SKFieldNode(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static SKFieldNode |
alloc() |
static SKFieldNode |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
float |
animationSpeed()
fields that can be animated can have non zero values.
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
int |
categoryBitMask()
Logical categories the field belongs to.
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static void |
clearTextInputContextIdentifier(java.lang.String identifier) |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
static SKFieldNode |
dragField()
Slows an object proportionally to the object’s velocity.
|
static SKFieldNode |
electricField()
A force proportional to the charge on the object.
|
float |
falloff()
The falloff exponent used to calculate field strength at a distance.
|
static long |
hash_static() |
SKFieldNode |
init() |
SKFieldNode |
initWithCoder(NSCoder aDecoder)
NS_DESIGNATED_INITIALIZER
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
boolean |
isEnabled()
If enabled, a field has an effect.
|
boolean |
isExclusive()
If a field is exclusive, it suppresses any other field in its region of effect.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static SKFieldNode |
magneticField()
A force proportional to the charge on the object and the object’s velocity.
|
float |
minimumRadius()
minimum radius of effect.
|
static SKFieldNode |
new_objc() |
static SKFieldNode |
node() |
static SKFieldNode |
nodeWithFileNamed(java.lang.String filename) |
static SKFieldNode |
nodeWithFileNamedSecurelyWithClassesAndError(java.lang.String filename,
NSSet<? extends org.moe.natj.objc.Class> classes,
org.moe.natj.general.ptr.Ptr<NSError> error) |
static SKFieldNode |
noiseFieldWithSmoothnessAnimationSpeed(double smoothness,
double speed)
A time varying differentiable Perlin simplex noise field.
|
static NSArray<? extends GKPolygonObstacle> |
obstaclesFromNodeBounds(NSArray<? extends SKNode> nodes) |
static NSArray<? extends GKPolygonObstacle> |
obstaclesFromNodePhysicsBodies(NSArray<? extends SKNode> nodes) |
static NSArray<? extends GKPolygonObstacle> |
obstaclesFromSpriteTexturesAccuracy(NSArray<? extends SKNode> sprites,
float accuracy) |
static SKFieldNode |
radialGravityField()
Applies a force in the direction of the origin of the field in local space.
|
SKRegion |
region()
The region property is the domain of the field's effect.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setAnimationSpeed(float value)
fields that can be animated can have non zero values.
|
void |
setCategoryBitMask(int value)
Logical categories the field belongs to.
|
void |
setEnabled(boolean value)
If enabled, a field has an effect.
|
void |
setExclusive(boolean value)
If a field is exclusive, it suppresses any other field in its region of effect.
|
void |
setFalloff(float value)
The falloff exponent used to calculate field strength at a distance.
|
void |
setMinimumRadius(float value)
minimum radius of effect.
|
void |
setRegion(SKRegion value)
The region property is the domain of the field's effect.
|
void |
setSmoothness(float value)
fields without a smoothness component will return 0
|
void |
setStrength(float value)
strength scaling value.
|
void |
setTexture(SKTexture value)
fields constructed with a texture can be uppdated by assigning a new texture
|
static void |
setVersion_static(long aVersion) |
float |
smoothness()
fields without a smoothness component will return 0
|
static SKFieldNode |
springField()
A Hooke’s law force - a force linearly proportional to distance from the center of the field.
|
float |
strength()
strength scaling value.
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
SKTexture |
texture()
fields constructed with a texture can be uppdated by assigning a new texture
|
static SKFieldNode |
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.
|
static SKFieldNode |
velocityFieldWithTexture(SKTexture velocityTexture)
The supplied texture contains velocity values for any object entering the field’s area of effect.
|
static long |
version_static() |
static SKFieldNode |
vortexField()
Applies a force tangential to the direction from the sample point to the field's position.
|
actionForKey, addChild, alpha, attributeValues, calculateAccumulatedFrame, canBecomeFocused, childNodeWithName, children, constraints, containsPoint, convertPointFromNode, convertPointToNode, copyWithZone, didHintFocusMovement, didUpdateFocusInContextWithAnimationCoordinator, encodeWithCoder, entity, enumerateChildNodesWithNameUsingBlock, focusBehavior, focusEffect, focusGroupIdentifier, focusGroupPriority, focusItemContainer, frame, hasActions, inParentHierarchy, insertChildAtIndex, intersectsNode, isEqualToNode, isHidden, isPaused, isTransparentFocusItem, isUserInteractionEnabled, moveToParent, name, nodeAtPoint, nodesAtPoint, objectForKeyedSubscript, parent, parentFocusEnvironment, physicsBody, position, preferredFocusedView, preferredFocusEnvironments, reachConstraints, removeActionForKey, removeAllActions, removeAllChildren, removeChildrenInArray, removeFromParent, runAction, runActionCompletion, runActionWithKey, scene, setAlpha, setAttributeValues, setConstraints, setEntity_unsafe, setEntity, setFocusBehavior, setHidden, setName, setNeedsFocusUpdate, setPaused, setPhysicsBody, setPosition, setReachConstraints, setScale, setSpeed, setUserData, setUserInteractionEnabled, setValueForAttributeNamed, setXScale, setYScale, setZPosition, setZRotation, shouldUpdateFocusInContext, speed, updateFocusIfNeeded, userData, valueForAttributeNamed, xScale, yScale, zPosition, zRotationactivityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, captureTextFromCamera, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, print, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommandaccessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static SKFieldNode alloc()
public static SKFieldNode allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static void clearTextInputContextIdentifier(java.lang.String identifier)
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static SKFieldNode dragField()
public static SKFieldNode electricField()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static SKFieldNode magneticField()
public static SKFieldNode new_objc()
public static SKFieldNode node()
public static SKFieldNode nodeWithFileNamed(java.lang.String filename)
public static SKFieldNode noiseFieldWithSmoothnessAnimationSpeed(double smoothness, double speed)
smoothness - value of 0 means as noisy as possible, 1 means as smooth as possiblespeed - is the general rate in Hz that any particular texel changes to a different valuesmoothness,
animationSpeedpublic static NSArray<? extends GKPolygonObstacle> obstaclesFromNodeBounds(NSArray<? extends SKNode> nodes)
public static NSArray<? extends GKPolygonObstacle> obstaclesFromNodePhysicsBodies(NSArray<? extends SKNode> nodes)
public static NSArray<? extends GKPolygonObstacle> obstaclesFromSpriteTexturesAccuracy(NSArray<? extends SKNode> sprites, float accuracy)
public static SKFieldNode radialGravityField()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static SKFieldNode springField()
public static org.moe.natj.objc.Class superclass_static()
public static SKFieldNode turbulenceFieldWithSmoothnessAnimationSpeed(double smoothness, double speed)
smoothness - value of 0 means as noisy as possible, 1 means as smooth as possiblespeed - is the general rate in Hz that any particular texel changes to a different valuesmoothness,
animationSpeedpublic static SKFieldNode velocityFieldWithTexture(SKTexture velocityTexture)
velocityTexture - The R and G channels of the supplied texture become x and y components of velocity. B and A, if present in the SKTexture, are ignored.texturepublic static long version_static()
public static SKFieldNode vortexField()
public float animationSpeed()
A value of 2 will animated twice as fast as a value of 1.
noiseFieldWithSmoothness:smoothness:animationSpeed,
turbulenceFieldWithSmoothness:smoothness:animationSpeedpublic int categoryBitMask()
SKPhysicsBody.fieldBitMask,
SKEmitterNode.fieldBitMaskpublic float falloff()
The default exponent is zero, which results in a uniform field with no falloff.
minimumRadiuspublic SKFieldNode init()
public SKFieldNode initWithCoder(NSCoder aDecoder)
NSCodinginitWithCoder in interface NSCodinginitWithCoder in class SKNodepublic boolean isEnabled()
default YES
public void setEnabled(boolean value)
default YES
public boolean isExclusive()
regionpublic void setExclusive(boolean value)
regionpublic float minimumRadius()
public SKRegion region()
public void setAnimationSpeed(float value)
A value of 2 will animated twice as fast as a value of 1.
noiseFieldWithSmoothness:smoothness:animationSpeed,
turbulenceFieldWithSmoothness:smoothness:animationSpeedpublic void setCategoryBitMask(int value)
SKPhysicsBody.fieldBitMask,
SKEmitterNode.fieldBitMaskpublic void setFalloff(float value)
The default exponent is zero, which results in a uniform field with no falloff.
minimumRadiuspublic void setMinimumRadius(float value)
public void setRegion(SKRegion value)
public void setSmoothness(float value)
noiseFieldWithSmoothness:smoothness:animationSpeed,
turbulenceFieldWithSmoothness:smoothness:animationSpeedpublic void setStrength(float value)
public void setTexture(SKTexture value)
velocityFieldWithTexture:velocityTexturepublic float smoothness()
noiseFieldWithSmoothness:smoothness:animationSpeed,
turbulenceFieldWithSmoothness:smoothness:animationSpeedpublic float strength()
public SKTexture texture()
velocityFieldWithTexture:velocityTexturepublic static SKFieldNode nodeWithFileNamedSecurelyWithClassesAndError(java.lang.String filename, NSSet<? extends org.moe.natj.objc.Class> classes, org.moe.natj.general.ptr.Ptr<NSError> error)
public static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCoding_supportsSecureCoding in class SKNode