Package org.robovm.apple.scenekit
Class SCNPhysicsBody
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.scenekit.SCNPhysicsBody
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
public class SCNPhysicsBody extends NSObject implements NSSecureCoding
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SCNPhysicsBody.SCNPhysicsBodyPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description SCNPhysicsBody()
SCNPhysicsBody(NSCoder decoder)
protected
SCNPhysicsBody(NSObject.Handle h, long handle)
protected
SCNPhysicsBody(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, willChangeValues
-
-
-
-
Constructor Detail
-
SCNPhysicsBody
public SCNPhysicsBody()
-
SCNPhysicsBody
protected SCNPhysicsBody(NSObject.Handle h, long handle)
-
SCNPhysicsBody
protected SCNPhysicsBody(NSObject.SkipInit skipInit)
-
SCNPhysicsBody
public SCNPhysicsBody(NSCoder decoder)
-
-
Method Detail
-
getType
public SCNPhysicsBodyType getType()
-
setType
public void setType(SCNPhysicsBodyType v)
-
getMass
public double getMass()
-
setMass
public void setMass(double v)
-
getMomentOfInertia
public SCNVector3 getMomentOfInertia()
- Since:
- Available in iOS 9.0 and later.
-
setMomentOfInertia
public void setMomentOfInertia(SCNVector3 v)
- Since:
- Available in iOS 9.0 and later.
-
usesDefaultMomentOfInertia
public boolean usesDefaultMomentOfInertia()
- Since:
- Available in iOS 9.0 and later.
-
setUsesDefaultMomentOfInertia
public void setUsesDefaultMomentOfInertia(boolean v)
- Since:
- Available in iOS 9.0 and later.
-
getCharge
public double getCharge()
-
setCharge
public void setCharge(double v)
-
getFriction
public double getFriction()
-
setFriction
public void setFriction(double v)
-
getRestitution
public double getRestitution()
-
setRestitution
public void setRestitution(double v)
-
getRollingFriction
public double getRollingFriction()
-
setRollingFriction
public void setRollingFriction(double v)
-
getPhysicsShape
public SCNPhysicsShape getPhysicsShape()
-
setPhysicsShape
public void setPhysicsShape(SCNPhysicsShape v)
-
isResting
public boolean isResting()
-
allowsResting
public boolean allowsResting()
-
setAllowsResting
public void setAllowsResting(boolean v)
-
getVelocity
public SCNVector3 getVelocity()
-
setVelocity
public void setVelocity(SCNVector3 v)
-
getAngularVelocity
public SCNVector4 getAngularVelocity()
-
setAngularVelocity
public void setAngularVelocity(SCNVector4 v)
-
getDamping
public double getDamping()
-
setDamping
public void setDamping(double v)
-
getAngularDamping
public double getAngularDamping()
-
setAngularDamping
public void setAngularDamping(double v)
-
getVelocityFactor
public SCNVector3 getVelocityFactor()
-
setVelocityFactor
public void setVelocityFactor(SCNVector3 v)
-
getAngularVelocityFactor
public SCNVector3 getAngularVelocityFactor()
-
setAngularVelocityFactor
public void setAngularVelocityFactor(SCNVector3 v)
-
getCategoryBitMask
public long getCategoryBitMask()
-
setCategoryBitMask
public void setCategoryBitMask(long v)
-
getCollisionBitMask
public SCNPhysicsCollisionCategory getCollisionBitMask()
-
setCollisionBitMask
public void setCollisionBitMask(SCNPhysicsCollisionCategory v)
-
getContactTestBitMask
public long getContactTestBitMask()
- Since:
- Available in iOS 9.0 and later.
-
setContactTestBitMask
public void setContactTestBitMask(long v)
- Since:
- Available in iOS 9.0 and later.
-
isAffectedByGravity
public boolean isAffectedByGravity()
- Since:
- Available in iOS 9.0 and later.
-
setAffectedByGravity
public void setAffectedByGravity(boolean v)
- Since:
- Available in iOS 9.0 and later.
-
getContinuousCollisionDetectionThreshold
public double getContinuousCollisionDetectionThreshold()
- Since:
- Available in iOS 12.0 and later.
-
setContinuousCollisionDetectionThreshold
public void setContinuousCollisionDetectionThreshold(double v)
- Since:
- Available in iOS 12.0 and later.
-
getCenterOfMassOffset
public SCNVector3 getCenterOfMassOffset()
- Since:
- Available in iOS 12.0 and later.
-
setCenterOfMassOffset
public void setCenterOfMassOffset(SCNVector3 v)
- Since:
- Available in iOS 12.0 and later.
-
getLinearRestingThreshold
public double getLinearRestingThreshold()
- Since:
- Available in iOS 12.0 and later.
-
setLinearRestingThreshold
public void setLinearRestingThreshold(double v)
- Since:
- Available in iOS 12.0 and later.
-
getAngularRestingThreshold
public double getAngularRestingThreshold()
- Since:
- Available in iOS 12.0 and later.
-
setAngularRestingThreshold
public void setAngularRestingThreshold(double v)
- Since:
- Available in iOS 12.0 and later.
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
applyForce
public void applyForce(SCNVector3 direction, boolean impulse)
-
applyForce
public void applyForce(SCNVector3 direction, SCNVector3 position, boolean impulse)
-
applyTorque
public void applyTorque(SCNVector4 torque, boolean impulse)
-
clearAllForces
public void clearAllForces()
-
resetTransform
public void resetTransform()
-
setResting
public void setResting(boolean resting)
- Since:
- Available in iOS 12.0 and later.
-
createStaticBody
public static SCNPhysicsBody createStaticBody()
-
createDynamicBody
public static SCNPhysicsBody createDynamicBody()
-
createKinematicBody
public static SCNPhysicsBody createKinematicBody()
-
create
public static SCNPhysicsBody create(SCNPhysicsBodyType type, SCNPhysicsShape shape)
-
init
protected long init(NSCoder decoder)
-
-