public class SCNPhysicsField extends NSObject implements NSCopying, NSSecureCoding
SCNPhysicsField is an abstract class that describes a force field that applies in the physics world.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SCNPhysicsField.Block_customFieldWithEvaluationBlock |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
SCNPhysicsField(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 SCNPhysicsField |
alloc() |
static SCNPhysicsField |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
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) |
long |
categoryBitMask()
[@property] categoryBitMask
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static SCNPhysicsField |
customFieldWithEvaluationBlock(SCNPhysicsField.Block_customFieldWithEvaluationBlock block)
A field force with a custom force evaluator.
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
SCNVector3 |
direction()
Direction of the field.
|
static SCNPhysicsField |
dragField()
Slows an object proportionally to the object’s velocity.
|
static SCNPhysicsField |
electricField()
A force proportional to the charge on the object.
|
void |
encodeWithCoder(NSCoder coder) |
double |
falloffExponent()
Changes the power of the force based on the distance from the center of the field (1 / distance ^ falloffExponent).
|
SCNVector3 |
halfExtent()
Specifies the half extent of the area of effect.
|
static long |
hash_static() |
SCNPhysicsField |
init() |
SCNPhysicsField |
initWithCoder(NSCoder coder)
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 |
isActive()
Specifies whether force field is active or not.
|
boolean |
isExclusive()
If YES, it suppresses any other field in its area.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static SCNPhysicsField |
linearGravityField()
Applies a force in the direction of the "direction" vector in the local space.
|
static SCNPhysicsField |
magneticField()
A force proportional to the charge on the object and the object’s velocity.
|
double |
minimumDistance()
Distance from the center of the field where the effect is at full strength.
|
static SCNPhysicsField |
new_objc() |
static SCNPhysicsField |
noiseFieldWithSmoothnessAnimationSpeed(double smoothness,
double speed)
A time varying differentiable Perlin simplex noise field.
|
SCNVector3 |
offset()
Offset of origin effect within the area.
|
static SCNPhysicsField |
radialGravityField()
Applies a force in the direction of the origin of the field in local space.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
long |
scope()
Controls whether the force field should apply inside or outside of the area.
|
void |
setActive(boolean value)
Specifies whether force field is active or not.
|
void |
setCategoryBitMask(long value)
[@property] categoryBitMask
|
void |
setDirection(SCNVector3 value)
Direction of the field.
|
void |
setExclusive(boolean value)
If YES, it suppresses any other field in its area.
|
void |
setFalloffExponent(double value)
Changes the power of the force based on the distance from the center of the field (1 / distance ^ falloffExponent).
|
void |
setHalfExtent(SCNVector3 value)
Specifies the half extent of the area of effect.
|
void |
setMinimumDistance(double value)
Distance from the center of the field where the effect is at full strength.
|
void |
setOffset(SCNVector3 value)
Offset of origin effect within the area.
|
void |
setScope(long value)
Controls whether the force field should apply inside or outside of the area.
|
void |
setStrength(double value)
The strength factor of the force field.
|
void |
setUsesEllipsoidalExtent(boolean value)
YES means that the area of effect is rounded within the extent.
|
static void |
setVersion_static(long aVersion) |
static SCNPhysicsField |
springField()
A Hooke’s law force - a force linearly proportional to distance from the center of the field.
|
double |
strength()
The strength factor of the force field.
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
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.
|
boolean |
usesEllipsoidalExtent()
YES means that the area of effect is rounded within the extent.
|
static long |
version_static() |
static SCNPhysicsField |
vortexField()
Applies a force tangential to the direction from the sample point to the field's position.
|
accessibilityActivate, 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 SCNPhysicsField alloc()
public static SCNPhysicsField 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 SCNPhysicsField customFieldWithEvaluationBlock(SCNPhysicsField.Block_customFieldWithEvaluationBlock block)
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static SCNPhysicsField dragField()
public static SCNPhysicsField 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 SCNPhysicsField linearGravityField()
public static SCNPhysicsField magneticField()
public static SCNPhysicsField new_objc()
public static SCNPhysicsField noiseFieldWithSmoothnessAnimationSpeed(double smoothness, double speed)
public static SCNPhysicsField 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 SCNPhysicsField springField()
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public static SCNPhysicsField turbulenceFieldWithSmoothnessAnimationSpeed(double smoothness, double speed)
public static long version_static()
public static SCNPhysicsField vortexField()
public long categoryBitMask()
Determines the node physicsBody's categories that will be influenced by the receiver. Defaults to all bit set.
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic SCNVector3 direction()
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic double falloffExponent()
public SCNVector3 halfExtent()
public SCNPhysicsField init()
public SCNPhysicsField initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic boolean isActive()
public void setActive(boolean value)
public boolean isExclusive()
public void setExclusive(boolean value)
public double minimumDistance()
public SCNVector3 offset()
public long scope()
public void setCategoryBitMask(long value)
Determines the node physicsBody's categories that will be influenced by the receiver. Defaults to all bit set.
public void setDirection(SCNVector3 value)
public void setFalloffExponent(double value)
public void setHalfExtent(SCNVector3 value)
public void setMinimumDistance(double value)
public void setOffset(SCNVector3 value)
public void setScope(long value)
public void setStrength(double value)
public void setUsesEllipsoidalExtent(boolean value)
public double strength()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic boolean usesEllipsoidalExtent()