/// <summary> /// Adds the child shape. /// </summary> /// <param name="localTransform">The local transform.</param> /// <param name="shape">The shape.</param> public void AddChildShape(float4x4 localTransform, IEmptyShapeImp shape) { var btChildShape = new EmptyShape(); var btLocalTransform = Translator.Float4X4ToBtMatrix(localTransform); BtCompoundShape.AddChildShape(btLocalTransform, btChildShape); }
public EmptyShape AddEmptyShape() { IEmptyShapeImp iEmptyShapeImp = _dwi.AddEmptyShape(); var retval = new EmptyShape(); retval._emtyShapeImp = iEmptyShapeImp; iEmptyShapeImp.UserObject = retval; return(retval); }
public void AddChildShape(float4x4 localTransform, IEmptyShapeImp shape) { var btChildShape = new EmptyShape(); var btLocalTransform = Translater.Float4X4ToBtMatrix(localTransform); BtCompoundShape.AddChildShape(btLocalTransform, btChildShape); }