3 using SiliconStudio.Core.Collections;
14 Type = ColliderShapeTypes.Compound;
17 InternalShape = InternalCompoundShape =
new BulletSharp.CompoundShape();
25 foreach (var shape
in colliderShapes)
27 InternalCompoundShape.RemoveChildShape(shape.InternalShape);
30 colliderShapes.Clear();
35 readonly FastList<ColliderShape> colliderShapes =
new FastList<ColliderShape>();
37 BulletSharp.CompoundShape internalCompoundShape;
38 internal BulletSharp.CompoundShape InternalCompoundShape
42 return internalCompoundShape;
46 InternalShape = internalCompoundShape = value;
56 colliderShapes.Add(shape);
58 InternalCompoundShape.AddChildShape(shape.PositiveCenterMatrix, shape.InternalShape);
69 colliderShapes.Remove(shape);
71 InternalCompoundShape.RemoveChildShape(shape.InternalShape);
86 get {
return colliderShapes[i]; }
99 return colliderShapes.Count;
void RemoveChildShape(ColliderShape shape)
Removes a child shape.
CompoundColliderShape()
Initializes a new instance of the CompoundColliderShape class.
override void Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resourc...
void AddChildShape(ColliderShape shape)
Adds a child shape.
using SiliconStudio.Paradox. Physics