@MarshalsPointer public static SCNPhysicsShapeOptions toObject(Class<SCNPhysicsShapeOptions> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new SCNPhysicsShapeOptions(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(List<SCNPhysicsShapeOptions> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (SCNPhysicsShapeOptions i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
public SCNPhysicsShapeOptions setKeepsAsCompound(boolean keepsAsCompound) { set(Keys.KeepAsCompound(), NSNumber.valueOf(keepsAsCompound)); return this; } public SCNVector3 getScale() {
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; } public SCNPhysicsShapeOptions set(NSString key, NSObject value) {
public SCNPhysicsShapeOptions setType(SCNPhysicsShapeType type) { set(Keys.Type(), type.value()); return this; } public boolean keepsAsCompound() {
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; } public SCNPhysicsShapeOptions set(NSString key, NSObject value) {
public SCNPhysicsShapeOptions setScale(SCNVector3 scale) { set(Keys.Scale(), new NSData(scale)); return this; } /*</methods>*/
@MarshalsPointer public static List<SCNPhysicsShapeOptions> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSDictionary> o = (NSArray<NSDictionary>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<SCNPhysicsShapeOptions> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new SCNPhysicsShapeOptions(o.get(i))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(List<SCNPhysicsShapeOptions> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (SCNPhysicsShapeOptions i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; } public SCNPhysicsShapeOptions set(NSString key, NSObject value) {
/** * @since Available in iOS 10.0 and later. */ public SCNPhysicsShapeOptions setCollisionMargin(NSNumber collisionMargin) { set(Keys.CollisionMargin(), collisionMargin); return this; } /*</methods>*/
@MarshalsPointer public static SCNPhysicsShapeOptions toObject(Class<SCNPhysicsShapeOptions> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new SCNPhysicsShapeOptions(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(List<SCNPhysicsShapeOptions> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (SCNPhysicsShapeOptions i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
/** * @since Available in iOS 10.0 and later. */ public SCNPhysicsShapeOptions setCollisionMargin(NSNumber collisionMargin) { set(Keys.CollisionMargin(), collisionMargin); return this; } /*</methods>*/
@MarshalsPointer public static SCNPhysicsShapeOptions toObject(Class<SCNPhysicsShapeOptions> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new SCNPhysicsShapeOptions(o); } @MarshalsPointer