PhysicsColliderShape Class
Namespace: Stride.PhysicsAssembly: Stride.Physics.dll
System.Object →
PhysicsColliderShape
Derived from PhysicsColliderShape:
[DataContract]
[ContentSerializer(typeof(DataContentSerializer<PhysicsColliderShape>))]
[DataSerializerGlobal(typeof(CloneSerializer<PhysicsColliderShape>), null, DataSerializerGenericMode.None, false, false, Profile = "Clone")]
[DataSerializerGlobal(typeof(ReferenceSerializer<PhysicsColliderShape>), null, DataSerializerGenericMode.None, false, false, Profile = "Content")]
public class PhysicsColliderShape : IDisposable
Name | Description | |
---|---|---|
Constructors | ||
PhysicsColliderShape() | ||
PhysicsColliderShape(IEnumerable<IAssetColliderShapeDesc>) | ||
Properties | ||
Descriptions | Used to serialize one or more collider shapes into one single shape Reading this value will automatically parse the Shape property into its description Writing this value will automatically compose, create and populate the Shape property |
|
Shape | ||
Methods | ||
Dispose() | ||
New(IAssetColliderShapeDesc[]) |
Constructors
PhysicsColliderShape()
public PhysicsColliderShape()
PhysicsColliderShape(IEnumerable<IAssetColliderShapeDesc>)
public PhysicsColliderShape(IEnumerable<IAssetColliderShapeDesc> descriptions)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IAssetColliderShapeDesc> | descriptions |
Properties
Descriptions
Used to serialize one or more collider shapes into one single shape Reading this value will automatically parse the Shape property into its description Writing this value will automatically compose, create and populate the Shape property
[DataMember]
public List<IAssetColliderShapeDesc> Descriptions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<IAssetColliderShapeDesc> |
Shape
public ColliderShape Shape { get; }
Property Value
Type | Description |
---|---|
ColliderShape |
Methods
Dispose()
public void Dispose()
New(IAssetColliderShapeDesc[])
public static PhysicsColliderShape New(params IAssetColliderShapeDesc[] descriptions)
Parameters
Type | Name | Description |
---|---|---|
IAssetColliderShapeDesc[] | descriptions |
Returns
Type | Description |
---|---|
PhysicsColliderShape |