Share via


SCNPhysicsShape.Create Method

Definition

Overloads

Name Description
Create(SCNGeometry, NSDictionary)
Create(SCNGeometry, SCNPhysicsShapeOptions)

Creates and returns a new physics shape from the specified geometry and options.

Create(SCNNode, NSDictionary)
Create(SCNNode, SCNPhysicsShapeOptions)

Creates and returns a new physics shape from the specified node and options.

Create(SCNPhysicsShape[], SCNMatrix4[])

Creates and returns a new physics shape by applying the specified transforms to the specified shapes shapes.

Create(SCNGeometry, Nullable<SCNPhysicsShapeType>, Nullable<Boolean>, Nullable<SCNVector3>)

Creates and returns a new physics shape from the specified values.

Create(SCNNode, Nullable<SCNPhysicsShapeType>, Nullable<Boolean>, Nullable<SCNVector3>)

Creates and returns a new physics shape from the specified values.

Create(SCNGeometry, NSDictionary)

[Foundation.Export("shapeWithGeometry:options:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static SceneKit.SCNPhysicsShape Create(SceneKit.SCNGeometry geometry, Foundation.NSDictionary? options);
[<Foundation.Export("shapeWithGeometry:options:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : SceneKit.SCNGeometry * Foundation.NSDictionary -> SceneKit.SCNPhysicsShape

Parameters

geometry
SCNGeometry
options
NSDictionary

Returns

Attributes

Applies to

Create(SCNGeometry, SCNPhysicsShapeOptions)

Creates and returns a new physics shape from the specified geometry and options.

public static SceneKit.SCNPhysicsShape Create(SceneKit.SCNGeometry geometry, SceneKit.SCNPhysicsShapeOptions? options);
static member Create : SceneKit.SCNGeometry * SceneKit.SCNPhysicsShapeOptions -> SceneKit.SCNPhysicsShape

Parameters

geometry
SCNGeometry

Returns

Applies to

Create(SCNNode, NSDictionary)

[Foundation.Export("shapeWithNode:options:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static SceneKit.SCNPhysicsShape Create(SceneKit.SCNNode node, Foundation.NSDictionary? options);
[<Foundation.Export("shapeWithNode:options:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : SceneKit.SCNNode * Foundation.NSDictionary -> SceneKit.SCNPhysicsShape

Parameters

node
SCNNode
options
NSDictionary

Returns

Attributes

Applies to

Create(SCNNode, SCNPhysicsShapeOptions)

Creates and returns a new physics shape from the specified node and options.

public static SceneKit.SCNPhysicsShape Create(SceneKit.SCNNode node, SceneKit.SCNPhysicsShapeOptions? options);
static member Create : SceneKit.SCNNode * SceneKit.SCNPhysicsShapeOptions -> SceneKit.SCNPhysicsShape

Parameters

node
SCNNode

Returns

Applies to

Create(SCNPhysicsShape[], SCNMatrix4[])

Creates and returns a new physics shape by applying the specified transforms to the specified shapes shapes.

public static SceneKit.SCNPhysicsShape Create(SceneKit.SCNPhysicsShape[] shapes, SceneKit.SCNMatrix4[] transforms);
static member Create : SceneKit.SCNPhysicsShape[] * SceneKit.SCNMatrix4[] -> SceneKit.SCNPhysicsShape

Parameters

shapes
SCNPhysicsShape[]

A list of shapes to transform.

transforms
SCNMatrix4[]

A list of transforms to apply..

Returns

Applies to

Create(SCNGeometry, Nullable<SCNPhysicsShapeType>, Nullable<Boolean>, Nullable<SCNVector3>)

Creates and returns a new physics shape from the specified values.

public static SceneKit.SCNPhysicsShape Create(SceneKit.SCNGeometry geometry, SceneKit.SCNPhysicsShapeType? shapeType = default, bool? keepAsCompound = default, SceneKit.SCNVector3? scale = default);
static member Create : SceneKit.SCNGeometry * Nullable<SceneKit.SCNPhysicsShapeType> * Nullable<bool> * Nullable<SceneKit.SCNVector3> -> SceneKit.SCNPhysicsShape

Parameters

geometry
SCNGeometry
keepAsCompound
Nullable<Boolean>

Returns

Applies to

Create(SCNNode, Nullable<SCNPhysicsShapeType>, Nullable<Boolean>, Nullable<SCNVector3>)

Creates and returns a new physics shape from the specified values.

public static SceneKit.SCNPhysicsShape Create(SceneKit.SCNNode node, SceneKit.SCNPhysicsShapeType? shapeType = default, bool? keepAsCompound = default, SceneKit.SCNVector3? scale = default);
static member Create : SceneKit.SCNNode * Nullable<SceneKit.SCNPhysicsShapeType> * Nullable<bool> * Nullable<SceneKit.SCNVector3> -> SceneKit.SCNPhysicsShape

Parameters

node
SCNNode
keepAsCompound
Nullable<Boolean>

Returns

Applies to