/// <summary> /// Creates and returns a new shape owner for a shape and the given entity. /// Applies a given transform to the new shapeOwner. /// </summary> /// <returns>Returns the id of the newly created shapeOwner</returns> public static uint CreateShapeOwnerWithTransform(this CollisionObject entity, Transform transform, Shape shape) { var newShapeOwnerId = entity.CreateShapeOwner(shape); entity.ShapeOwnerAddShape(newShapeOwnerId, shape); entity.ShapeOwnerSetTransform(newShapeOwnerId, transform); return(newShapeOwnerId); }