Package org.robovm.apple.spritekit
Class SKPhysicsBody
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.spritekit.SKPhysicsBody
- All Implemented Interfaces:
NSCoding,NSObjectProtocol,NSSecureCoding,ObjCProtocol
public class SKPhysicsBody extends NSObject implements NSSecureCoding
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSKPhysicsBody.SKPhysicsBodyPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAINFields inherited from class org.robovm.objc.ObjCObject
customClass -
Constructor Summary
Constructors Modifier Constructor Description SKPhysicsBody()SKPhysicsBody(NSCoder coder)protectedSKPhysicsBody(NSObject.Handle h, long handle)protectedSKPhysicsBody(NSObject.SkipInit skipInit) -
Method Summary
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRefMethods inherited from class org.robovm.rt.bro.NativeObject
as, getHandle, setHandle
-
Constructor Details
-
SKPhysicsBody
public SKPhysicsBody() -
SKPhysicsBody
-
SKPhysicsBody
-
SKPhysicsBody
-
-
Method Details
-
isDynamic
public boolean isDynamic() -
setDynamic
public void setDynamic(boolean v) -
usesPreciseCollisionDetection
public boolean usesPreciseCollisionDetection() -
setUsesPreciseCollisionDetection
public void setUsesPreciseCollisionDetection(boolean v) -
allowsRotation
public boolean allowsRotation() -
setAllowsRotation
public void setAllowsRotation(boolean v) -
isPinned
public boolean isPinned() -
setPinned
public void setPinned(boolean v) -
isResting
public boolean isResting() -
setResting
public void setResting(boolean v) -
getFriction
public double getFriction() -
setFriction
public void setFriction(double v) -
getCharge
public double getCharge() -
setCharge
public void setCharge(double v) -
getRestitution
public double getRestitution() -
setRestitution
public void setRestitution(double v) -
getLinearDamping
public double getLinearDamping() -
setLinearDamping
public void setLinearDamping(double v) -
getAngularDamping
public double getAngularDamping() -
setAngularDamping
public void setAngularDamping(double v) -
getDensity
public double getDensity() -
setDensity
public void setDensity(double v) -
getMass
public double getMass() -
setMass
public void setMass(double v) -
getArea
public double getArea() -
isAffectedByGravity
public boolean isAffectedByGravity() -
setAffectedByGravity
public void setAffectedByGravity(boolean v) -
getFieldBitMask
public int getFieldBitMask() -
setFieldBitMask
public void setFieldBitMask(int v) -
getCategoryBitMask
public int getCategoryBitMask() -
setCategoryBitMask
public void setCategoryBitMask(int v) -
getCollisionBitMask
public int getCollisionBitMask() -
setCollisionBitMask
public void setCollisionBitMask(int v) -
getContactTestBitMask
public int getContactTestBitMask() -
setContactTestBitMask
public void setContactTestBitMask(int v) -
getJoints
-
getNode
-
getVelocity
-
setVelocity
-
getAngularVelocity
public double getAngularVelocity() -
setAngularVelocity
public void setAngularVelocity(double v) -
supportsSecureCoding
public static boolean supportsSecureCoding() -
applyForce
-
applyForce
-
applyTorque
public void applyTorque(double torque) -
applyImpulse
-
applyImpulse
-
applyAngularImpulse
public void applyAngularImpulse(double impulse) -
getAllContactedBodies
-
createCircle
-
createCircle
-
createRectangle
-
createRectangle
-
createPolygon
-
createEdge
-
createEdgeChain
-
createEdgeLoop
-
createEdgeLoop
-
createWithTexture
-
createWithTexture
public static SKPhysicsBody createWithTexture(SKTexture texture, float alphaThreshold, CGSize size) -
createWithBodies
-
encode
-
init
-